UNPKG
@sontrx/typia
Version:
latest (7.6.4)
7.6.4
7.6.3
Superfast runtime validators with only one line
typia.io
samchon/typia
@sontrx/typia
/
src
/
internal
/
_isFormatDate.ts
4 lines
(2 loc)
•
144 B
text/typescript
View Raw
1
2
3
4
export
const
_isFormatDate = (
str
:
string
):
boolean
=>
FORMAT
.
test
(str);
const
FORMAT
=
/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/
;