mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Add strict equalities in src/core/core.js
This commit is contained in:
parent
0012b8803c
commit
83a4c68df9
1 changed files with 1 additions and 1 deletions
|
@ -311,7 +311,7 @@ var PDFDocument = (function PDFDocumentClosure() {
|
|||
var str = strBuf.join('');
|
||||
stream.pos = pos;
|
||||
var index = backwards ? str.lastIndexOf(needle) : str.indexOf(needle);
|
||||
if (index == -1) {
|
||||
if (index === -1) {
|
||||
return false; /* not found */
|
||||
}
|
||||
stream.pos += index;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue