Fix "line.replace is not a function" error in Refer/BibIX detect as well

This commit is contained in:
Dan Stillman 2009-07-17 20:19:21 +00:00
parent 0def6c109f
commit f14a5e05fa
2 changed files with 3 additions and 3 deletions

View file

@ -1 +1 @@
2009-07-17 05:30:00
2009-07-17 20:20:00

View file

@ -8,7 +8,7 @@
"maxVersion":"",
"priority":100,
"inRepository":true,
"lastUpdated":"2008-07-24 23:50:00"
"lastUpdated":"2009-07-17 20:20:00"
}
Zotero.configure("dataMode", "line");
@ -18,7 +18,7 @@ function detectImport() {
var lineRe = /%[A-Z0-9\*\$] .+/;
var line;
var matched = 0;
while((line = Zotero.read()) !== "false") {
while((line = Zotero.read()) !== false) {
line = line.replace(/^\s+/, "");
if(line != "") {
if(lineRe.test(line)) {