From 0259ef93104cc7ddc6203c519fa6b272241d7bba Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 1 Apr 2013 14:29:07 -0400 Subject: [PATCH] Exclude underscores from search strings Fixes http://forums.zotero.org/discussion/28585/ --- chrome/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 index 6b3f67a14e..f399fb90fd 100644 --- 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