gulp-cachebust icon indicating copy to clipboard operation
gulp-cachebust copied to clipboard

Files that are a subset of another file is incorrectly replaced

Open ansman opened this issue 9 years ago • 0 comments

If you have a file named bar.png and one named foo-bar.png the foo-bar.png file sometimes gets the incorrect hash since the regex (\bbar.png\b).

This could potentially be solved by simply replacing the longest name first.

ansman avatar Jun 07 '15 13:06 ansman