jamesknelson / gulp-rev-replace

Rewrite occurences of filenames which have been renamed by gulp-rev
MIT License
389 stars 62 forks source link

Filename which is a prefix of another file is incorrectly replaced #47

Open BorisKozo opened 8 years ago

BorisKozo commented 8 years ago

Lets say you have files named 1) foo 2) foo-bar And you replace them with 1) foo-123 2) foo-bar-456

File (2) will be replaced twice and the result is foo-123-bar-456

BorisKozo commented 8 years ago

I overcome this by appending delimiters in modifyUnreved and then appending them again in modifyReved but it is a little ugly.

avchugaev commented 7 years ago

We also get in such problem... Can you fix this?