mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化代码
This commit is contained in:
parent
6f43c6d4d3
commit
24978231d9
@ -2456,7 +2456,7 @@
|
|||||||
if (text == null || text == undefined) {
|
if (text == null || text == undefined) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
let regMoney = /^\d+\.?\d{0,4}$/;
|
let regMoney = /^\-?\d+\.?\d{0,4}$/;
|
||||||
return regMoney.test(text);
|
return regMoney.test(text);
|
||||||
},
|
},
|
||||||
idCard: function(num) {
|
idCard: function(num) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user