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

validate netloc with port number #104

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

naz-theori
Copy link
Contributor

Hi 👋

I've found url that contains port number is coming up as invalid. If it's not intended, how about validating the port like this?
Regex is from python-validators/validators.

Thank you

Copy link

codecov bot commented Jun 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (0549988) to head (9530f33).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #104   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           11        11           
  Lines          806       806           
=========================================
  Hits           806       806           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@adbar
Copy link
Owner

adbar commented Jun 13, 2024

Hi @naz-theori, thanks for the PR, the code looks good.

@adbar adbar merged commit b38ca2d into adbar:master Jun 13, 2024
14 checks passed
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.

2 participants