From ac5d882910b387ea6295114de6cae9117418f295 Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Wed, 15 Apr 2026 15:36:27 +0800 Subject: [PATCH] =?UTF-8?q?feat(utils):=20=E4=BC=98=E5=8C=96validatorEndTi?= =?UTF-8?q?me?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/index.js b/src/utils/index.js index 68e596d..20fad1f 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -494,9 +494,9 @@ export function validatorEndTime(options) { if (!value || !timeStart) return Promise.resolve(); - const dateOnlyRegex = /^\d{4}-\d{2}-\d{2}$/; - const dateTimeRegex = /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/; if (!type) { + const dateOnlyRegex = /^\d{4}-\d{2}-\d{2}$/; + const dateTimeRegex = /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/; if (dateOnlyRegex.test(timeStart)) type = "date"; else if (dateTimeRegex.test(timeStart))