From 3a5da5e6df94e09b4a14ba20fbaadc385f489c85 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 16 Jul 2009 10:33:10 +0000 Subject: [PATCH] Fix potential line.replace() error in RIS detect --- repotime.txt | 2 +- translators/RIS.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/repotime.txt b/repotime.txt index 943f4158a4..b60ec8dc29 100644 --- a/repotime.txt +++ b/repotime.txt @@ -1 +1 @@ -2009-07-16 09:20:00 +2009-07-16 10:35:00 diff --git a/translators/RIS.js b/translators/RIS.js index fafd993c3f..709a0a569e 100644 --- a/translators/RIS.js +++ b/translators/RIS.js @@ -8,7 +8,7 @@ "maxVersion":"", "priority":100, "inRepository":true, - "lastUpdated":"2008-12-01 18:31:54" + "lastUpdated":"2009-07-16 10:35:00" } Zotero.configure("dataMode", "line"); @@ -18,7 +18,7 @@ Zotero.addOption("exportCharset", "UTF-8"); function detectImport() { var line; var i = 0; - while((line = Zotero.read()) !== "false") { + while((line = Zotero.read()) !== false) { line = line.replace(/^\s+/, ""); if(line != "") { if(line.substr(0, 6).match(/^TY {1,2}- /)) {