updated the regex pattern to only look for href=<folder path>/style.css, so it doesnt matter where href is present in the link. Fixes #927

This commit is contained in:
Divya Manian
2012-01-29 13:06:10 -08:00
parent 2eb19a9c99
commit cff92881a8

View File

@@ -655,8 +655,8 @@
<echo message="Updating the HTML with the new css filename: ${style.css}"/>
<replaceregexp match="&lt;link rel=['&quot;]?stylesheet['&quot;]?\s+href=['&quot;]?(.*)/${file.root.stylesheet}(?:\?.*)?['&quot;]?\s*/?&gt;"
replace="&lt;link rel='stylesheet' href='\1/${css.sha}.css'&gt;" flags="m">
<replaceregexp match="&lt;link(.+)href=['&quot;]?(.*)/${file.root.stylesheet}(?:\?.*)?['&quot;\s]?(.*/?&gt;)"
replace="&lt;link\1href='\2/${css.sha}.css'\3" flags="m">
<fileset dir="${dir.intermediate}" includes="${page-files}"/>
</replaceregexp>