Skip to content

Built-in RFC3339 validator#395

Merged
sirosen merged 4 commits intomainfrom
rfc3339-validator
Feb 6, 2024
Merged

Built-in RFC3339 validator#395
sirosen merged 4 commits intomainfrom
rfc3339-validator

Conversation

@sirosen
Copy link
Copy Markdown
Member

@sirosen sirosen commented Feb 6, 2024

Add a built-in RFC3339 validator, so that format validation of date-time is always available.

Also add a time validator (ISO 8601, similar to RFC 3339).

After benchmarking, it turns out that the manual, non-regex
construction is significantly slower than using a regex to do most of
the work. With a citation to the prior art in rfc3339-validator, this
now implements a regex based check.
This is similar to the `date-time` case, and is tested in a similar
manner.
@sirosen sirosen merged commit 5c293f3 into main Feb 6, 2024
@sirosen sirosen deleted the rfc3339-validator branch February 6, 2024 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant