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

Add isRFC3339 #816

Merged
merged 4 commits into from
May 3, 2018
Merged

Add isRFC3339 #816

merged 4 commits into from
May 3, 2018

Conversation

pietvanzoen
Copy link
Contributor

Based on https://tools.ietf.org/html/rfc3339#section-5.6

In summary RFC3339 is ISO8601 but much more strict and requires a full date/time with offset.

I matched the spec and the implementation quite closely for clarity. But if you prefer just a big-ol regex for brevity just let me know.

@chriso
Copy link
Collaborator

chriso commented May 3, 2018

Thanks for this. Looks good.

@chriso chriso merged commit 4bdbc38 into validatorjs:master May 3, 2018
@pietvanzoen
Copy link
Contributor Author

No problem! Thanks for the merge.

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.

2 participants