Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix tag replacement. Use global RegExp flag.

  • Loading branch information...
commit 5d10b1b54ecad4ec396d1b1ae83736a52cfc9fcf 1 parent 52395b3
@reid reid authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Jakefile.js
View
4 Jakefile.js
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.