www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 38b9bbc8c8f442a9c3814386b7d56578b414cb25
parent 8900a83b7dc476e1297e935ffae0c00106d5e264
Author: Aurimas Vinckevicius <aurimas.dev@gmail.com>
Date:   Thu, 17 Sep 2015 12:58:19 -0500

Fix Translate tests on Windows

Diffstat:
Mtest/tests/translateTest.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/tests/translateTest.js b/test/tests/translateTest.js @@ -47,7 +47,7 @@ function saveItemsThroughTranslator(translatorType, items) { translate.setTranslator(buildDummyTranslator(translatorType == "web" ? 4 : 1, "function detectWeb() {}\n"+ "function do"+tyname+"() {\n"+ - " var json = JSON.parse('"+JSON.stringify(items).replace(/'/g, "\'")+"');\n"+ + " var json = JSON.parse('"+JSON.stringify(items).replace(/['\\]/g, "\\$&")+"');\n"+ " for (var i=0; i<json.length; i++) {"+ " var item = new Zotero.Item;\n"+ " for (var field in json[i]) { item[field] = json[i][field]; }\n"+