Skip to content

Ensure a normalized URL is printed#13

Merged
jhuleatt merged 1 commit intoFirebaseExtended:mainfrom
mathiasbynens:patch-1
Sep 9, 2020
Merged

Ensure a normalized URL is printed#13
jhuleatt merged 1 commit intoFirebaseExtended:mainfrom
mathiasbynens:patch-1

Conversation

@mathiasbynens
Copy link
Copy Markdown
Contributor

https://example.tld is not a normalized URL, but https://example.tld/ (note the slash following the origin) is.

new URL('https://example.tld').toString() === 'https://example.tld/'

This patch ensures a normalized URL is used in the GitHub comment.

Drive-by fix: fix /n → \n typo.

Copy link
Copy Markdown
Collaborator

@jhuleatt jhuleatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mathiasbynens!

@jhuleatt jhuleatt merged commit 6ef7103 into FirebaseExtended:main Sep 9, 2020
@mathiasbynens mathiasbynens deleted the patch-1 branch September 9, 2020 18:27
pomle pushed a commit to pomle/action-hosting-deploy that referenced this pull request Nov 8, 2020
@FirebaseExtended FirebaseExtended locked and limited conversation to collaborators Nov 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants