• Robert Knight's avatar
    Fix PDF quote anchoring only testing a single page · 81aa2372
    Robert Knight authored
    The `findInPages` function was supposed to search for a quote looking
    at each of the page indexes in the input array, in order.
    
    However because of the way that `next` was used, this function ended up
    only searching the first page in the list. The `then(attempt, next)`
    code was intended to try the current page and then move to the next in
    the list if no match was found. However the `next` function is not
    called if `attempt` throws in this context.
    
    The `pdfContent` var in the test was renamed to `pdfPages` for clarity.
    81aa2372
Name
Last commit
Last update
.github Loading commit data...
docs Loading commit data...
images Loading commit data...
scripts Loading commit data...
src Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
.npmrc Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
CODE_OF_CONDUCT Loading commit data...
Jenkinsfile Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
gulpfile.js Loading commit data...
npm-shrinkwrap.json Loading commit data...
package.json Loading commit data...