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

Fixes getNumber at the end of stream

This commit is contained in:
Yury Delendik 2012-10-24 10:45:05 -05:00
parent ce9460113c
commit 4c0f9eb924
3 changed files with 19 additions and 2 deletions

View file

@ -333,8 +333,7 @@ var Lexer = (function LexerClosure() {
var floating = false;
var str = ch;
var stream = this.stream;
for (;;) {
ch = stream.lookChar();
while ((ch = stream.lookChar())) {
if (ch == '.' && !floating) {
str += ch;
floating = true;