Skip to content

Conversation

@nahsra
Copy link
Contributor

@nahsra nahsra commented Oct 4, 2023

Often when you want to validate a host name, you want to check "is this within a given domain". With the current API, the user has to construct a Pattern, which has footguns the user might not expect, because parsing hosts is tricky, just like the rest of URL parsing.

This PR gives the user a friendly API for this use case.

@nahsra nahsra changed the title Add a new API for making validating hostnames Add a new API for validating hostnames within domains Oct 4, 2023
@nahsra nahsra requested a review from dhafley October 4, 2023 14:18
@nahsra nahsra merged commit b5f707a into main Oct 4, 2023
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