Fix backslash escaping

This commit is contained in:
Jason Davies
2011-02-28 22:23:02 +00:00
parent 0d4d8813ac
commit 2cf88d4e77
+1 -1
View File
@@ -605,7 +605,7 @@ Handlebars.JavaScriptCompiler = function() {};
quotedString: function(str) {
return '"' + str
.replace(/\\/, '\\\\')
.replace(/\\/g, '\\\\')
.replace(/"/g, '\\"')
.replace(/\n/g, '\\n')
.replace(/\r/g, '\\r') + '"';