Skip to content

Updated domain validator coverage#179

Closed
pr0fg wants to merge 1 commit intopython-validators:masterfrom
pr0fg:pr0fg-domain-validator-underscore-patch
Closed

Updated domain validator coverage#179
pr0fg wants to merge 1 commit intopython-validators:masterfrom
pr0fg:pr0fg-domain-validator-underscore-patch

Conversation

@pr0fg
Copy link
Copy Markdown

@pr0fg pr0fg commented Oct 5, 2020

Updated domain validator to support domains that start with an underscore. These domains are quite common in the wild.

For example:
_jabber._tcp.gmail.com
_sip._udp.apnic.net

See RFC 2181, section 11, "Name syntax" and RFC 1034, section 3.5 "Preferred name syntax" for more info.

Updated domain validator to support domains that start with an underscore. These domains are quite common in the wild.

For example:
_jabber._tcp.gmail.com
_sip._udp.apnic.net

See RFC 2181, section 11, "Name syntax" and RFC 1034, section 3.5 "Preferred name syntax" for more info.
@pr0fg
Copy link
Copy Markdown
Author

pr0fg commented Oct 5, 2020

Looks like we need to resolve cases where a TLD starts with an underscore (invalid) vs. a subdomain starting with an underscore (valid).

nandgator added a commit to nandgator/pyvalidators that referenced this pull request Mar 2, 2023
- Uses type hints, improve docs
- Regards [RFC 1034](https://www.rfc-editor.org/rfc/rfc1034) and [RFC 2782](https://www.rfc-editor.org/rfc/rfc2782)
- Updates corresponding test functions

**Related items**

*Issues*

- Closes python-validators#52
- Closes python-validators#74
- Closes python-validators#81
- Closes python-validators#89
- Closes python-validators#95
- Closes python-validators#120
- Closes python-validators#124
- Closes python-validators#141
- Closes python-validators#143
- Closes python-validators#199
- Closes python-validators#204

*PRs*

- Closes python-validators#114
- Closes python-validators#179
nandgator added a commit to nandgator/pyvalidators that referenced this pull request Mar 2, 2023
- Uses type hints, improve docs
- Regards [RFC 1034](https://www.rfc-editor.org/rfc/rfc1034) and [RFC 2782](https://www.rfc-editor.org/rfc/rfc2782)
- Updates corresponding test functions

**Related items**

*Issues*

- Closes python-validators#52
- Closes python-validators#74
- Closes python-validators#81
- Closes python-validators#89
- Closes python-validators#95
- Closes python-validators#120
- Closes python-validators#124
- Closes python-validators#141
- Closes python-validators#143
- Closes python-validators#199
- Closes python-validators#204

*PRs*

- Closes python-validators#114
- Closes python-validators#179
@nandgator nandgator added the enhancement Issue/PR: A new feature label Mar 2, 2023
@nandgator nandgator closed this in 7489857 Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Issue/PR: A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants