Skip to content

Commit

Permalink
Fix tag replacement. Use global RegExp flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
reid committed Feb 13, 2014
1 parent 52395b3 commit 5d10b1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jakefile.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ function mustachify(inFile, lines, outFile) {
// Remove header
md = data.split("\n").slice(lines).join("\n"),
html = new Ronn(md).html()
.replace(/<[\/]*html>/, "")
.replace("<pre>", '<pre class="code"');
.replace(/<[\/]*html>/g, "")
.replace(/<pre>/g, '<pre class="code">');
fs.writeFileSync(outFile, html, opts);
}

Expand Down

0 comments on commit 5d10b1b

Please sign in to comment.