www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 0259ef93104cc7ddc6203c519fa6b272241d7bba
parent f008342dd81816ff436abb13fabd474415916105
Author: Simon Kornblith <simon@simonster.com>
Date:   Mon,  1 Apr 2013 14:29:07 -0400

Exclude underscores from search strings

Fixes http://forums.zotero.org/discussion/28585/

Diffstat:
Mchrome/content/zotero/recognizePDF.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/recognizePDF.js b/chrome/content/zotero/recognizePDF.js @@ -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]);