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

fix port parsing logic #11

Merged
merged 1 commit into from Dec 2, 2022
Merged

Conversation

bakkot
Copy link
Contributor

@bakkot bakkot commented Dec 2, 2022

let url = new URL('https://example.com:443');
console.log(url.port); // empty string, because it's the default for the protocol
console.log(url.protocol); // 'https:' - note the colon, which was missing in the logic below

@bbilly1 bbilly1 merged commit 52b65bf into tubearchivist:master Dec 2, 2022
@bakkot bakkot deleted the protocol-has-colon branch December 3, 2022 02:46
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.

None yet

2 participants