diff --git a/src/components/redPackets/rules.js b/src/components/redPackets/rules.js index 4a2a73cd..46a0dd10 100644 --- a/src/components/redPackets/rules.js +++ b/src/components/redPackets/rules.js @@ -33,8 +33,8 @@ export default { { type: "required", message: "请输入用户可领个数" }, { type: "regExp", - message: "请输入0~9999的整数", - reg: /^([0-9][0-9]{0,3})$/ + message: "请输入1 ~ 100000个正整数红包", + reg: /^[1-9]\d{0,4}$|^100000$/ } ] // 领取个数 },