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

refactor: url and email validation #335

Merged
merged 2 commits into from
Sep 27, 2024
Merged

refactor: url and email validation #335

merged 2 commits into from
Sep 27, 2024

Conversation

zeyu2001
Copy link
Contributor

This PR replaces UrlValidator with the newer createUrlSchema API from starter-kitty, which is more concise and extendable for use with Zod schemas. It also replaces the .endsWith check for .gov.sg emails with createEmailSchema, which is safe to extend for more custom use cases, e.g. multiple domains, subdomain vs. full match only, etc.

Copy link

vercel bot commented Sep 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
starter-kit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 25, 2024 10:58am

@datadog-opengovsg
Copy link

datadog-opengovsg bot commented Sep 25, 2024

Datadog Report

Branch report: refactor_starter_kitty
Commit report: 085e712
Test service: starter-kit

✅ 0 Failed, 13 Passed, 0 Skipped, 9.67s Total Time

@karrui karrui merged commit e328168 into main Sep 27, 2024
12 checks passed
@karrui karrui deleted the refactor_starter_kitty branch September 27, 2024 05:24
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