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 hostname_port validator feature #563

Merged
merged 3 commits into from
Feb 9, 2020
Merged

Add hostname_port validator feature #563

merged 3 commits into from
Feb 9, 2020

Conversation

terala
Copy link

@terala terala commented Jan 3, 2020

Fixes Or Enhances # 562

  • Tests exist or have been written that cover this particular change.

Change Details:

  • Add support for hostname_port validator. Tests added for this validator.
  • Fix regex for hostnameRegexStringRFC1123 so it will reject hostnames like extra..com.

@go-playground/admins

@terala
Copy link
Author

terala commented Jan 8, 2020

@deankarn or anyone.. can you guys take a look?

@deankarn
Copy link
Contributor

Hey @terala would you be able to add documentation for the new validation here

@terala
Copy link
Author

terala commented Jan 17, 2020

@deankarn Added the documentation.

Copy link

@cchung100m cchung100m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @terala

Thanks for correcting the regex of RFC-1123 and LGTM :)

@deankarn deankarn merged commit 68e8e13 into go-playground:master Feb 9, 2020
fairyhunter13 added a commit to fairyhunter13/validator that referenced this pull request Jul 12, 2020
Add hostname_port validator feature
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.

None yet

3 participants