-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add lookahead for ip check in AnyUrl #2512
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2512 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 25 25
Lines 5109 5109
Branches 1050 1050
=========================================
Hits 5109 5109
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for having a look at this! 🙏
Unfortunately there is a test case that used to pass and now fails. I suggest you add it
def test_ipv4_no_port():
url = validate_url('ftp://123.45.67.8')
assert url.scheme == 'ftp'
assert url.host == '123.45.67.8'
assert url.host_type == 'ipv4'
assert url.port is None
assert url.user is None
assert url.password is None
Thanks for the feedback and good catch! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Should/could I do anything else here with this or are we on track for the next steps? |
Will this PR be merged, if yes is there a way to understand when it will be released? |
this is great, thank you so much. @GitHK I'm aiming to make a new release over the coming weeks, but as you can see there are a lot of PRs to review. If you're hoping for a new release soon, perhaps you could speed things up by reviewing any on PRs with the "ready for review" badge? |
Change Summary
Added lookahead for the ip regex'es to allow for urls with 4 numbers preceeding the rest of the host
Related issue number
fix #1651
Checklist
changes/<pull request or issue id>-<github username>.md
file added describing change(see changes/README.md for details)