mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
优化代码
This commit is contained in:
parent
6b7a4a0587
commit
6f43c6d4d3
@ -2446,7 +2446,7 @@
|
||||
if (text == null || text == undefined) {
|
||||
return true;
|
||||
}
|
||||
let regMoney = /^\d+\.?\d{0,2}$/;
|
||||
let regMoney = /^\-?\d+\.?\d{0,2}$/;
|
||||
return regMoney.test(text);
|
||||
},
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user