From 5bdb050b5fe791176eded9e7d8632f78e880d3a1 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 8 Mar 2012 01:27:03 -0500 Subject: [PATCH] Support multiple character browsers --- chrome/content/zotero/tools/testTranslators/testTranslators.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; }