Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[fix] non-greedy replace

  • Loading branch information...
commit f8539325c7a9a7a9f73a04a86c773b24f4115a18 1 parent 51cabed
@jfhbrook authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  bin/server
View
2  bin/server
@@ -39,7 +39,7 @@ fs.readdir(__dirname + '/../fonts', function ( err, files ) {
});
http.createServer(function (req, res) {
- var text = req.url.trim("/").replace("_", " "),
+ var text = req.url.trim("/").replace(/_/g, " "),
fonts = files.slice().reverse();
console.log(text)
Please sign in to comment.
Something went wrong with that request. Please try again.