Skip to content

Commit 661ee8f

Browse files
authored
Merge pull request #581 from SuPenguin/patch-1
Invalide date check in validators.js
2 parents b0d681d + a282933 commit 661ee8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/validators.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ const validators = {
149149
if (res != null) return res;
150150

151151
let m = new Date(value);
152-
if (!m) {
152+
if (isNaN(m.getDate())) {
153153
return [msg(messages.invalidDate)];
154154
}
155155

0 commit comments

Comments
 (0)