diff --git a/chrome/content/zotero/tools/testTranslators/testTranslators.js b/chrome/content/zotero/tools/testTranslators/testTranslators.js index 5c6a6757c..ed1c00d4d 100644 --- a/chrome/content/zotero/tools/testTranslators/testTranslators.js +++ b/chrome/content/zotero/tools/testTranslators/testTranslators.js @@ -488,7 +488,7 @@ function init() { hashVars[myVar.substr(0, index)] = myVar.substr(index+1); } - if(hashVars["browser"] && /^[a-z]$/.test(hashVars["browser"]) + if(hashVars["browser"] && /^[a-z]+$/.test(hashVars["browser"]) && hashVars["version"] && /^[0-9a-zA-Z\-._]/.test(hashVars["version"])) { loc = "testResults-"+hashVars["browser"]+"-"+hashVars["version"]+".json"; }