1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.isDigit = exports.isDigitStart = void 0;
|
4 | /**
|
5 | * Checks if the character is or belongs to a number.
|
6 | * [0-9]|+|-|.
|
7 | */
|
8 | function isDigitStart(code) {
|
9 | return ((code >= 48 && code <= 57) /* 0..9 */ || code === 0x2b /* + */ || code === 0x2d /* - */ || code === 0x2e); /* . */
|
10 | }
|
11 | exports.isDigitStart = isDigitStart;
|
12 | function isDigit(code) {
|
13 | return code >= 48 && code <= 57; // 0..9
|
14 | }
|
15 | exports.isDigit = isDigit;
|
16 | //# sourceMappingURL=is-digit-start.js.map |
\ | No newline at end of file |