Compare commits

..

No commits in common. "ac5d882910b387ea6295114de6cae9117418f295" and "c4260661fb9903d7efad8024dbe60d0c49623989" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "zy-react-library", "name": "zy-react-library",
"private": false, "private": false,
"version": "1.2.33", "version": "1.2.32",
"type": "module", "type": "module",
"description": "", "description": "",
"author": "LiuJiaNan", "author": "LiuJiaNan",

View File

@ -494,9 +494,9 @@ export function validatorEndTime(options) {
if (!value || !timeStart) if (!value || !timeStart)
return Promise.resolve(); 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) { 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)) if (dateOnlyRegex.test(timeStart))
type = "date"; type = "date";
else if (dateTimeRegex.test(timeStart)) else if (dateTimeRegex.test(timeStart))