Compare commits
No commits in common. "ac5d882910b387ea6295114de6cae9117418f295" and "c4260661fb9903d7efad8024dbe60d0c49623989" have entirely different histories.
ac5d882910
...
c4260661fb
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "zy-react-library",
|
||||
"private": false,
|
||||
"version": "1.2.33",
|
||||
"version": "1.2.32",
|
||||
"type": "module",
|
||||
"description": "",
|
||||
"author": "LiuJiaNan",
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue