mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Fixes ignoring of the escaped CR LF
This commit is contained in:
parent
878a123e47
commit
20a91bcdbf
2 changed files with 17 additions and 1 deletions
|
@ -61,6 +61,17 @@ describe('parser', function() {
|
|||
|
||||
expect(result).toEqual('p!U"$2');
|
||||
});
|
||||
|
||||
it('should ignore escaped CR and LF', function() {
|
||||
// '(\101\<CR><LF>\102)'
|
||||
// should be parsed as
|
||||
// "AB"
|
||||
var input = new StringStream('(\\101\\\r\n\\102\\\r\\103\\\n\\104)');
|
||||
var lexer = new Lexer(input);
|
||||
var result = lexer.getString();
|
||||
|
||||
expect(result).toEqual('ABCD');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue