Skip to content

Commit

Permalink
Added assert string
Browse files Browse the repository at this point in the history
  • Loading branch information
ritave committed Oct 14, 2024
1 parent 3832414 commit 9e05f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iso8601-date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export function parseDateTime(value: string): Date | TZDate {
}
}

assert(Y !== undefined);
assert(Y !== undefined, 'Invalid ISO-8601 parser state');
M = M ?? '01';
D = D ?? '01';
H = H ?? '00';
Expand Down

0 comments on commit 9e05f70

Please sign in to comment.