Josiah / gulp-cachebust

Generates checksums and renames references to files, useful for cachebusting
30 stars 11 forks source link

Files that are a subset of another file is incorrectly replaced #12

Open ansman opened 9 years ago

ansman commented 9 years ago

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.