Don't fail on null importRegexp
This commit is contained in:
parent
cd7d2e9975
commit
56cba8c709
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue