From 42edc63bf883578432264fae766cc7d07ef6fe4b Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sat, 16 Oct 2010 20:02:12 +0000 Subject: [PATCH] fix strange "invalid quantifier" error in Fx4 --- chrome/content/zotero/xpcom/citeproc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js index 011965f3e2..e63fc5c79b 100644 --- a/chrome/content/zotero/xpcom/citeproc.js +++ b/chrome/content/zotero/xpcom/citeproc.js @@ -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"); },