-
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 | ||
docs | ||
images | ||
scripts | ||
src | ||
.eslintignore | ||
.eslintrc | ||
.gitignore | ||
.npmignore | ||
.npmrc | ||
.travis.yml | ||
CHANGELOG.md | ||
CODE_OF_CONDUCT | ||
Jenkinsfile | ||
LICENSE | ||
Makefile | ||
README.md | ||
gulpfile.js | ||
npm-shrinkwrap.json | ||
package.json |