UNPKG
@mm-custom/regexp
Version:
latest (2.0.0)
2.0.0
1.0.1
1.0.0
正则表达式库
@mm-custom/regexp
/
lib
/
number.js
2 lines
(1 loc)
•
237 B
JavaScript
View Raw
1
2
"use strict"
;
Object
.
defineProperty
(
exports
,
Symbol
.
toStringTag
,{
value
:
"Module"
});
const
e=
/^[1-9]\d*$/
,t=
/^[0-9]\d*$/
,r=
/^(([1-9][0-9]*)(\.\d+)?|0\.\d+)$/
;
exports
.
naturalNumberReg
=t;
exports
.
nonZeroNumberReg
=r;
exports
.
positiveIntegerReg
=e;