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

Fixes error with international URLs that have more than 2 hyphens #184

Merged
merged 8 commits into from Jun 5, 2022

Conversation

automationator
Copy link
Contributor

Previously, a URL like http://xn----gtbybh.xn--p1ai/1/asdf would fail validation since the regex only allowed for 2 hyphens after the "xn". However, certain encodings allow for up to 4 of them. This PR fixes that issue.

@AIGeneratedUsername
Copy link

@kvesteri Could you please give an update about pending pull requests? Are help and new contributions accepted?

@kvesteri kvesteri merged commit 67c57f4 into python-validators:master Jun 5, 2022
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Jun 19, 2022
https://build.opensuse.org/request/show/982861
by user mia + dimstar_suse
- Update to 0.20.0
  * Add ipv4 digit lenghts validation
    (gh#python-validators/validators#191)
  * Fix error with international URLs that have more than 2 hyphens
    (gh#python-validators/validators#184)
Changes in 0.19.0:
  * Improve IPv6 validation
    (gh#python-validators/validators#201 gh#python-validators/validators#107)
  * Drop support for Python 3.4
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