mirror of
https://github.com/zotero/zotero.git
synced 2026-10-05 02:43:38 +00:00
Be more lenient about spacing
This commit is contained in:
parent
c3ad5fd6f9
commit
448d68295b
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue