fix strange "invalid quantifier" error in Fx4

This commit is contained in:
Simon Kornblith 2010-10-16 20:02:12 +00:00
parent 90922843b0
commit 42edc63bf8

View file

@ -7497,7 +7497,7 @@ CSL.Output.Formats.prototype.text = {
};
CSL.Output.Formats.prototype.rtf = {
"text_escape": function (text) {
return text.replace("\\", "\\\\", "g").replace(/[\x7F-\uFFFF]/g,
return text.replace(/\\/, "\\\\", "g").replace(/[\x7F-\uFFFF]/g,
function(aChar) { return "\\uc0\\u"+aChar.charCodeAt(0).toString()+"{}" })
.replace("\t", "\\tab{}", "g");
},