From 270dc1c892572615cd923464807085d924cae11c Mon Sep 17 00:00:00 2001
From: children117cl <278950112@qq.com>
Date: 星期二, 18 五月 2021 12:00:04 +0800
Subject: [PATCH] 修复金额正则

---
 src/utils/form_validate.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/utils/form_validate.js b/src/utils/form_validate.js
index e4bdc7f..c9a6d55 100644
--- a/src/utils/form_validate.js
+++ b/src/utils/form_validate.js
@@ -27,7 +27,7 @@
    * @returns {boolean}
    */
   validateMoney(value) {
-    return /^0|[1-9][0-9]*(\.\d{2})?$/.test(value + '')
+    return /^(0|[1-9]\d*)(\.\d{1,2})?$/.test(value + '')
   },
 
   /**

--
Gitblit v1.8.0