Exclude underscores from search strings

Fixes http://forums.zotero.org/discussion/28585/
This commit is contained in:
Simon Kornblith 2013-04-01 14:29:07 -04:00
parent f008342dd8
commit 0259ef9310

View file

@ -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]);