mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-08-05 05:47: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.len = data.length;
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user