-
Notifications
You must be signed in to change notification settings - Fork 90
fix: correctProtocol misparsing protocol #314
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: correctProtocol misparsing protocol #314
Conversation
6dd1003
to
d68ba38
Compare
I've also added a new test which fails on mainline but succeeds with this patch. I don't really know if this is a desirable fix, but my proposed implementation feels more correct than what we have in mainline. |
d68ba38
to
7b273bb
Compare
Since the whole purpose of the function is to add the However I fail to see what it has to do with #213. |
Hi @wraithgar, thanks for the prompt response. Sorry, I accidentally opened the ticket on the Here's the relevant ticket: #315 |
@wraithgar, I've also added some comments to help clear up what each of the branches is responsible for. I can revert that change if you prefer, feel free to let me know |
lib/parse-url.js
Outdated
// The URL has the form of <foo>@<bar> which is likely a shortcut URL | ||
// such as @npm/cli |
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.
I'm not 100% sure my understanding behind the intent here is correct
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.
This is for shorthand like: [email protected]:npm/hosted-git-info.git
Comments are fine! Please don't length wrap them though, it's less accessible. Rule of thumb is markdown, comments, and strings for output shouldn't wrap. It's much easier to handle with a screen reader that way. |
6fdde50
to
65e21d0
Compare
TIL, thanks! Also comments were too verbose so I slimmed them down. |
🤖 I have created a release *beep* *boop* --- ## [9.0.2](v9.0.1...v9.0.2) (2025-10-08) ### Bug Fixes * [`c91490e`](c91490e) [#314](#314) correctProtocol misparsing protocol (#314) (@markovejnovic) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Fixes #213.
Tests pass locally:
