From 448d68295b279a790f2016ae462892bd495b286c Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sun, 22 Jan 2012 14:35:55 -0500 Subject: [PATCH] Be more lenient about spacing --- chrome/content/zotero/tools/testTranslators/translatorTester.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js index 017aae06bc..1c979dd65a 100644 --- a/chrome/content/zotero/tools/testTranslators/translatorTester.js +++ b/chrome/content/zotero/tools/testTranslators/translatorTester.js @@ -55,7 +55,7 @@ Zotero_TranslatorTester = function(translator, type, debug) { var testEnd = code.indexOf("/** END TEST CASES **/"); if (testStart !== -1 && testEnd !== -1) { var test = code.substring(testStart + 24, testEnd); - test = test.replace(/var testCases = /,''); + test = test.replace(/var testCases = /,'').trim(); // The JSON parser doesn't like final semicolons if (test.lastIndexOf(';') == (test.length-1)) { test = test.slice(0,-1);