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",
"private": false,
"version": "1.2.33",
"version": "1.2.32",
"type": "module",
"description": "",
"author": "LiuJiaNan",

View File

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