Skip to content

Expand validators.url to allow FQDNs that have IDNA A-labels #79

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

Closed
wants to merge 8 commits into from

Conversation

nullripper
Copy link

PR to resolve issue #78. In short, my changes make it so that URLs containing IDNA A-labels (e.g. "http://xn--j1ail.xn--p1ai") will pass validation instead of failing. Please refer to the issue for a more comprehensive explanation of the problem and my proposed solution.

@kvesteri
Copy link
Collaborator

kvesteri commented Apr 4, 2018

Could you also add unit tests for this?

@nullripper
Copy link
Author

Added unit tests as you requested, let me know if you need any more. Also made a slight change to the IDNA regex to allow for user:pass authentication; all the unit tests passed afterwards so that change should be good to go.

@kvesteri
Copy link
Collaborator

kvesteri commented Apr 5, 2018

Tests are failing in CI

@jeromekleinen
Copy link

Hi guys,

I would love to use this bugfix. Would it be possible to see what's going wrong with the PR to get this merged?

Thanks!

@yozachar yozachar added enhancement Issue/PR: A new feature outdated Issue/PR: Open for more than 3 months labels Mar 8, 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 outdated Issue/PR: Open for more than 3 months
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants