mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-24 14:58:36 +08:00
test(datetime): add unit tests for parseDate()
This commit is contained in:

committed by
Manu MA

parent
aa9d0d4282
commit
e75618e82f
@ -178,7 +178,7 @@ export function parseDate(val: string | undefined | null): DatetimeData | undefi
|
||||
// ISO 8601 format: 1994-12-15T13:47:20Z
|
||||
let parse: any[] | null = null;
|
||||
|
||||
if (val != null) {
|
||||
if (val) {
|
||||
// try parsing for just time first, HH:MM
|
||||
parse = TIME_REGEXP.exec(val);
|
||||
if (parse) {
|
||||
|
Reference in New Issue
Block a user