Browse Source

Add strict equalities in src/core/core.js

Jonas Jenwald 11 years ago
parent
commit
83a4c68df9
  1. 2
      src/core/core.js

2
src/core/core.js

@ -311,7 +311,7 @@ var PDFDocument = (function PDFDocumentClosure() { @@ -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…
Cancel
Save