UNPKG

xlb-main-login

Version:

``` yarn install ```

8 lines (7 loc) 210 B
export const IsPositiveInteger = (rule, value, callback) => { const Reg = /^[1-9]\d*$/ if (value && !Reg.test(value)) { return callback(new Error('只能为正整数')) } return callback() }