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

Updated the regex to make it work when putting the hash after '?' #22

Closed olivierguerriat closed 10 years ago

olivierguerriat commented 10 years ago

I am using ${name}.${ext}?${hash} as fileNameFormat and I noticed the task appended the hash each time, without clearing the last one.

This commit is my attempt to fix it. It works for me, but it is not as universal as it should be, I suppose.

Luismahou commented 10 years ago

Hey mate, thanks for your contribution. Allow me some time to review it and prepare a new release if necessary. Cheers

donson commented 10 years ago

@olivierguerriat , I just encountered this problem, thank you.