mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Add strict equalities in src/display/metadata.js
This commit is contained in:
parent
c1f1f2f0e1
commit
ec6ec13506
1 changed files with 2 additions and 2 deletions
|
@ -28,8 +28,8 @@ var Metadata = PDFJS.Metadata = (function MetadataClosure() {
|
|||
var chars = '';
|
||||
for (var i = 0; i < bytes.length; i += 2) {
|
||||
var code = bytes.charCodeAt(i) * 256 + bytes.charCodeAt(i + 1);
|
||||
chars += code >= 32 && code < 127 && code != 60 && code != 62 &&
|
||||
code != 38 && false ? String.fromCharCode(code) :
|
||||
chars += code >= 32 && code < 127 && code !== 60 && code !== 62 &&
|
||||
code !== 38 && false ? String.fromCharCode(code) :
|
||||
'&#x' + (0x10000 + code).toString(16).substring(1) + ';';
|
||||
}
|
||||
return '>' + chars;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue