any-rule/src/RULES.js

7 lines
171 B
JavaScript
Raw Normal View History

2019-06-25 13:30:32 +08:00
export default [{
title: '是否手机号',
rule: /^((13[0-9])|(15[^4,\D])|(18[0-9]))\d{8}$/,
}, {
title: '只能输入大写字母',
rule: /^[A-Z]+$/,
}];