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

fix: update domain name regex to accept longer TLDs (#19) #35

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

cornelcroi
Copy link
Contributor

  • Modified regex pattern to accept TLDs longer than 6 characters
  • Changed TLD length limit from {2,6} to {2,}
  • Allows domains like .services to be validated correctly

Fixes #19

Issue number:

Summary

Changes

Please provide a summary of what's being changed

User experience

Please share what the user experience looks like before and after this change

Checklist

If your change doesn't seem to apply, please leave them unchecked.

  • I have performed a self-review of this change
  • Changes have been tested
  • Changes are documented
Is this a breaking change?

RFC issue number:

Checklist:

  • Migration process documented
  • Implement warnings (if it can live side by side)

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

- Modified regex pattern to accept TLDs longer than 6 characters
- Changed TLD length limit from {2,6} to {2,}
- Allows domains like .services to be validated correctly

Fixes #19
@cornelcroi cornelcroi merged commit e3ad1d9 into main Oct 24, 2024
1 check failed
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.

Bug: Domain name validation doesn't accept TLDs longer than 6 characters
1 participant