mirror of
https://github.com/zotero/zotero.git
synced 2026-10-06 02:50:03 +00:00
Strip quotation marks from lines sent to Google Scholar for metadata retrieval so they don't mess up query quoting
This commit is contained in:
parent
5494c6d0c5
commit
24cc9880ae
1 changed files with 5 additions and 1 deletions
|
|
@ -321,7 +321,11 @@ Zotero_RecognizePDF.Recognizer.prototype.recognize = function(file, libraryID, c
|
|||
var uBound = medianLength + 4;
|
||||
var lBound = medianLength - 4;
|
||||
for (var i=0; i<lineLengthsLength; i++) {
|
||||
if(lineLengths[i] > lBound && lineLengths[i] < uBound) this._goodLines.push(lines[i]);
|
||||
if(lineLengths[i] > lBound && lineLengths[i] < uBound) {
|
||||
// Strip quotation marks so they don't mess up search query quoting
|
||||
var line = lines[i].replace('"', '');
|
||||
this._goodLines.push(line);
|
||||
}
|
||||
}
|
||||
|
||||
this._startLine = this._iteration = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue