www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 42edc63bf883578432264fae766cc7d07ef6fe4b
parent 90922843b05927de889c295b3a0307b98db385fe
Author: Simon Kornblith <simon@simonster.com>
Date:   Sat, 16 Oct 2010 20:02:12 +0000

fix strange "invalid quantifier" error in Fx4


Diffstat:
Mchrome/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 @@ -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"); },