Fix "line.replace is not a function" error in Refer/BibIX detect as well
This commit is contained in:
parent
0def6c109f
commit
f14a5e05fa
|
@ -1 +1 @@
|
||||||
2009-07-17 05:30:00
|
2009-07-17 20:20:00
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"maxVersion":"",
|
"maxVersion":"",
|
||||||
"priority":100,
|
"priority":100,
|
||||||
"inRepository":true,
|
"inRepository":true,
|
||||||
"lastUpdated":"2008-07-24 23:50:00"
|
"lastUpdated":"2009-07-17 20:20:00"
|
||||||
}
|
}
|
||||||
|
|
||||||
Zotero.configure("dataMode", "line");
|
Zotero.configure("dataMode", "line");
|
||||||
|
@ -18,7 +18,7 @@ function detectImport() {
|
||||||
var lineRe = /%[A-Z0-9\*\$] .+/;
|
var lineRe = /%[A-Z0-9\*\$] .+/;
|
||||||
var line;
|
var line;
|
||||||
var matched = 0;
|
var matched = 0;
|
||||||
while((line = Zotero.read()) !== "false") {
|
while((line = Zotero.read()) !== false) {
|
||||||
line = line.replace(/^\s+/, "");
|
line = line.replace(/^\s+/, "");
|
||||||
if(line != "") {
|
if(line != "") {
|
||||||
if(lineRe.test(line)) {
|
if(lineRe.test(line)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user