You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
491 B

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isDigitStart = isDigitStart;
exports.isDigit = isDigit;
/**
* Checks if the character is or belongs to a number.
* [0-9]|+|-|.
*/
function isDigitStart(code) {
return ((code >= 48 && code <= 57) /* 0..9 */ || code === 0x2b /* + */ || code === 0x2d /* - */ || code === 0x2e); /* . */
}
function isDigit(code) {
return code >= 48 && code <= 57; // 0..9
}
//# sourceMappingURL=is-digit-start.js.map