mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-24 17:18:07 +02:00
fix typo in lexing of octal escapes
This commit is contained in:
parent
a9a16ccb8a
commit
0753ce25c1
1 changed files with 2 additions and 2 deletions
4
pdf.js
4
pdf.js
|
@ -1199,11 +1199,11 @@ var Lexer = (function() {
|
|||
ch = stream.lookChar();
|
||||
if (ch >= '0' && ch <= '7') {
|
||||
stream.skip();
|
||||
x = (x << 3) + (x - '0');
|
||||
x = (x << 3) + (ch - '0');
|
||||
ch = stream.lookChar();
|
||||
if (ch >= '0' && ch <= '7') {
|
||||
stream.skip();
|
||||
x = (x << 3) + (x - '0');
|
||||
x = (x << 3) + (ch - '0');
|
||||
}
|
||||
}
|
||||
str += String.fromCharCode(x);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue