Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid propagating invalid date #218

Merged
merged 1 commit into from
Jun 19, 2024
Merged

Conversation

1ec5
Copy link
Member

@1ec5 1ec5 commented Jun 12, 2024

If a start_date or end_date value matches the ISO 8601 regular expression but is still somehow malformed, utilNormalizeDateString() now returns null, which will avoid downstream errors in code that tries to use the Date object for something meaningful and also trip the invalid date validator rule.

Fixes OpenHistoricalMap/issues#826.

@1ec5 1ec5 merged commit b3bacbb into staging Jun 19, 2024
6 checks passed
@1ec5 1ec5 deleted the 1ec5-label-invalid-end-date-826 branch June 19, 2024 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants