Skip to content

Conversation

Aetton
Copy link

@Aetton Aetton commented Dec 20, 2022

There are validators for URL, domain and IP addresses, but no validator for just host

@yozachar yozachar added duplicate Issue/PR: Redundant enhancement Issue/PR: A new feature labels Mar 8, 2023
yozachar added a commit to yozachar/pyvalidators that referenced this pull request Mar 11, 2023
- hostname can be
  - a simple alpha-numeral, in the context of system names
  - an ip address, in the context of URLs
  - a domain name, in the context of URLs
  - in all the above cases, it can be with or without port number
- adds tests, update docs

**Related items**

*PRs*

- Closes python-validators#220
@yozachar
Copy link
Collaborator

ref #240

yozachar added a commit to yozachar/pyvalidators that referenced this pull request Mar 11, 2023
- hostname can be
  - a simple alpha-numeral, in the context of system names
  - an ip address, in the context of URLs
  - a domain name, in the context of URLs
  - in all the above cases, it can be with or without port number
- adds tests, update docs

**Related items**

*PRs*

- Closes python-validators#220
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issue/PR: Redundant enhancement Issue/PR: A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants