1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Remove a misplaced false from a condition in fixMetadata, in metadata.js, since it currently short circuits the entire condition

This looks to me like a simple oversight, which has existed ever since PR 1598 all the way back in 2012.
This commit is contained in:
Jonas Jenwald 2016-12-07 22:42:41 +01:00
parent 94ddd8f61d
commit 77bcc9232e

View file

@ -37,8 +37,8 @@ var error = sharedUtil.error;
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) ? String.fromCharCode(code) :
'&#x' + (0x10000 + code).toString(16).substring(1) + ';';
}
return '>' + chars;