mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #1573 from brendandahl/issue-1516
Handle junk at the end of postscript functions.
This commit is contained in:
commit
cf19de8fcd
2 changed files with 10 additions and 1 deletions
|
@ -836,7 +836,10 @@ var PostScriptLexer = (function PostScriptLexerClosure() {
|
|||
// operator
|
||||
var str = ch.toLowerCase();
|
||||
while (true) {
|
||||
ch = stream.lookChar().toLowerCase();
|
||||
ch = stream.lookChar();
|
||||
if (ch === null)
|
||||
break;
|
||||
ch = ch.toLowerCase();
|
||||
if (ch >= 'a' && ch <= 'z')
|
||||
str += ch;
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue