www

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

commit 56cba8c709006e5ebf0294aaa2a9a97a3bb06765
parent cd7d2e9975c116972a37773359de96650777887a
Author: Simon Kornblith <simon@simonster.com>
Date:   Tue, 13 Mar 2012 10:13:19 -0400

Don't fail on null importRegexp

Diffstat:
Mchrome/content/zotero/xpcom/translation/translator.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/translation/translator.js b/chrome/content/zotero/xpcom/translation/translator.js @@ -283,7 +283,7 @@ Zotero.Translators = new function() { var tier2Translators = []; for(var i=0; i<allTranslators.length; i++) { - if(allTranslators[i].importRegexp.test(location)) { + if(allTranslators[i].importRegexp && allTranslators[i].importRegexp.test(location)) { tier1Translators.push(allTranslators[i]); } else { tier2Translators.push(allTranslators[i]);