Skip to content

Commit

Permalink
don't use literal RegExp syntax for HCHARS because couchdb doesn't li…
Browse files Browse the repository at this point in the history
…ke it for some reason
  • Loading branch information
Caolan McMahon authored and Aleksander Williams committed Jan 22, 2011
1 parent ad0e64c commit 915bd0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dust.js
Expand Up @@ -469,7 +469,7 @@ Tap.prototype.go = function(value) {
return value;
};

var HCHARS = /[&<>\"]/,
var HCHARS = new RegExp(/[&<>\"]/),
AMP = /&/g,
LT = /</g,
GT = />/g,
Expand Down

0 comments on commit 915bd0c

Please sign in to comment.