-
Notifications
You must be signed in to change notification settings - Fork 594
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
fix: incorrect http(s) regexp #1212
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1212 +/- ##
=======================================
Coverage 93.50% 93.50%
=======================================
Files 43 43
Lines 4035 4035
=======================================
Hits 3773 3773
Misses 262 262
Continue to review full report at Codecov.
|
Do you think you could add a regression test? |
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
I add more test for requestBadPort |
* fix: incorrect http(s) regexp * Add more test for requestBadPort
* fix: incorrect http(s) regexp * Add more test for requestBadPort
* fix: incorrect http(s) regexp * Add more test for requestBadPort
/^http?s/
is matched forhtts
andhttps
.It should fix to
/^https?:/
(matched forhttp:
andhttps:
)