commit 3a5da5e6df94e09b4a14ba20fbaadc385f489c85
parent 78bfa79f9e28cca6053aa5c1670786fa0cc29a28
Author: Dan Stillman <dstillman@zotero.org>
Date: Thu, 16 Jul 2009 10:33:10 +0000
Fix potential line.replace() error in RIS detect
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git 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
@@ -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}- /)) {