mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-08-04 21:37:23 +02:00
Merge pull request #21709 from calixteman/postscript-number-regex
Remove the ambiguity from the PostScript number regex
This commit is contained in:
commit
729ddf907f
@ -132,7 +132,7 @@ class Lexer {
|
|||||||
this.pos = 0;
|
this.pos = 0;
|
||||||
this.len = data.length;
|
this.len = data.length;
|
||||||
// Sticky regexes: set lastIndex before exec() to match at an exact offset.
|
// Sticky regexes: set lastIndex before exec() to match at an exact offset.
|
||||||
this._numberPattern = /[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/iy;
|
this._numberPattern = /[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/iy;
|
||||||
this._identifierPattern = /[a-z]+/y;
|
this._identifierPattern = /[a-z]+/y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user