fix strange "invalid quantifier" error in Fx4
This commit is contained in:
parent
90922843b0
commit
42edc63bf8
|
@ -7497,7 +7497,7 @@ CSL.Output.Formats.prototype.text = {
|
||||||
};
|
};
|
||||||
CSL.Output.Formats.prototype.rtf = {
|
CSL.Output.Formats.prototype.rtf = {
|
||||||
"text_escape": function (text) {
|
"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()+"{}" })
|
function(aChar) { return "\\uc0\\u"+aChar.charCodeAt(0).toString()+"{}" })
|
||||||
.replace("\t", "\\tab{}", "g");
|
.replace("\t", "\\tab{}", "g");
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user