mirror of
https://gitee.com/ssssssss-team/magic-api.git
synced 2026-06-09 10:23:53 +08:00
优化代码提示
This commit is contained in:
@@ -291,15 +291,7 @@ class CharacterStream {
|
||||
}
|
||||
|
||||
matchDigit(consume) {
|
||||
if (this.index >= this.end)
|
||||
return false;
|
||||
let c = this.source.charAt(this.index);
|
||||
if (c!== ' ' && !isNaN(c)) {
|
||||
if (consume)
|
||||
this.index++;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return this.matchAny('0123456789', consume)
|
||||
}
|
||||
|
||||
matchIdentifierStart(consume) {
|
||||
|
||||
Reference in New Issue
Block a user