Skip to content

Commit

Permalink
Fix for CSS filename replacement in HTML so that quotes are not error…
Browse files Browse the repository at this point in the history
…onously placed.

This fixes issue h5bp#153.
  • Loading branch information
kierans committed Mar 15, 2013
1 parent 4c758fa commit 5039bc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,8 @@
<copy file="${dir.intermediate}/${dir.css}/style-concat.min.css" tofile="${dir.publish}/${dir.css}/${css.sha}.css" />

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

Expand Down

0 comments on commit 5039bc0

Please sign in to comment.