From 83a4c68df9ab8c9703d3da2c424db0b08926da2a Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 1 Aug 2014 18:24:51 +0200 Subject: [PATCH] Add strict equalities in src/core/core.js --- src/core/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/core.js b/src/core/core.js index 4d130b0fc..d61aedca6 100644 --- a/src/core/core.js +++ b/src/core/core.js @@ -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;