Luismahou / grunt-hashres

Hashes your js and css files and rename the <script> and <link> declarations that refer to them in your html/php/etc files.
MIT License
115 stars 41 forks source link

A fix for issue #40 #47

Open yanivefraim opened 9 years ago

yanivefraim commented 9 years ago

Partial file names. Files names with same prefix where mistakenly matched. For example: Both "scripts/main.js" and "scripts/mobile-main.js" where a match to "main.js" file. I added regex fix in order to match only exact file names (regex added is "([\'\"\/])" for matching names staring with ', " or /. This fixed the issue. I added unitests (which fails without this fix).