From 0a3b96bd9c080d913216b2067a76115078d3d060 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 18 Apr 2011 23:23:41 +0000 Subject: [PATCH] Don't attempt to run regular expressions on very long URIs (fixes incompatibility with Update Scanner as reported at http://forums.zotero.org/discussion/17604/216-translator-hangs-with-addon-update-scanner/#Item_0) --- chrome/content/zotero/xpcom/translation/translate.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js index 75a9a2187..98b218744 100644 --- a/chrome/content/zotero/xpcom/translation/translate.js +++ b/chrome/content/zotero/xpcom/translation/translate.js @@ -991,8 +991,9 @@ Zotero.Translate.Web.prototype._getPotentialTranslators = function() { var allTranslators = Zotero.Translators.getAllForType("web"); var potentialTranslators = []; + Zotero.debug("Translate: Running regular expressions"); for(var i=0; i