Use 100 lines

This commit is contained in:
Simon Kornblith 2013-01-21 01:05:43 -05:00
parent 9c80e9ab93
commit 28d83faa64

View file

@ -352,7 +352,7 @@ Zotero_RecognizePDF.Recognizer.prototype._cleanLines = function(lines, callback)
// Use only first column from multi-column lines
const lineRe = /^\s*([^\s]+(?: [^\s]+)+)/;
var cleanedLines = [], cleanedLineLengths = [];
for(var i=0; i<lines.length && cleanedLines.length<30; i++) {
for(var i=0; i<lines.length && cleanedLines.length<100; i++) {
var m = lineRe.exec(lines[i]);
if(m && m[1].split(' ').length > 3) {
cleanedLines.push(m[1]);