You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.
@Luismahou I tried to solved this issue by changing this line:
destContents = destContents.replace(new RegExp(utils.preg_quote(value[0])+"(?[0-9a-z]+)?", "g"), value[1]);
to become:
destContents = destContents.replace(new RegExp("(?:(["'/]))" + utils.preg_quote(value[0])+"(?[0-9a-z]+)?", "g"), value[1]);
This solved the issue of mobile-main.js and main.js being treated the same. But!, this caused some testing to fall. I'm not sure why (I guess I'm not familiar with all hashres capabilities and I screwed something). Any idea? (Anyway, I am still working on trying to fix this issue (:
tnx!
yanivefraim
pushed a commit
to yanivefraim/grunt-hashres
that referenced
this issue
Jan 24, 2015
Partial file names. Added regex fix in order to match only exact file
names (So when wanting to match “main.js” only “scripts/main.js” will
fit and “scripts/mobile-main.js” will not fit). +Added unitests.
andreiashu
pushed a commit
to Fluxusio/grunt-hashres
that referenced
this issue
Apr 7, 2016
If a particular filename is the same as a partial part of another file, hashres is incorrectly inserting hash into the partial filename match as well.
Example:
base.min.js >> base.min.20decb81.js
angular-base.min.js >> angular-base.min.ff38c0a4.js
(partial match of "base.min.js")
Token replacement:
<script charset="utf-8" src="base.min.20decb81.js"></script><!-- correct -->
<script charset="utf-8" src="//angular-base.min.20decb81.js"></script><!-- incorrect -->
Second replacement should be
<script charset="utf-8" src="//angular-base.min.ff38c0a4.js"></script>
The text was updated successfully, but these errors were encountered: