mirror of
https://github.com/zotero/zotero.git
synced 2026-10-03 02:21:49 +00:00
Exclude underscores from search strings
Fixes http://forums.zotero.org/discussion/28585/
This commit is contained in:
parent
f008342dd8
commit
0259ef9310
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ var Zotero_RecognizePDF = new function() {
|
|||
Zotero.debug("RecognizePDF: "+error);
|
||||
|
||||
// Use only first column from multi-column lines
|
||||
const lineRe = /^\s*([^\s]+(?: [^\s]+)+)/;
|
||||
const lineRe = /^[\s_]*([^\s]+(?: [^\s_]+)+)/;
|
||||
var cleanedLines = [], cleanedLineLengths = [];
|
||||
for(var i=0; i<lines.length && cleanedLines.length<100; i++) {
|
||||
var m = lineRe.exec(lines[i]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue