Skip to content

Extend TLD matching to 14 chars#3596

Merged
Tyriar merged 2 commits intoxtermjs:masterfrom
wesbos:patch-1
Jan 5, 2022
Merged

Extend TLD matching to 14 chars#3596
Tyriar merged 2 commits intoxtermjs:masterfrom
wesbos:patch-1

Conversation

@wesbos
Copy link
Copy Markdown
Contributor

@wesbos wesbos commented Jan 5, 2022

I ran into this issue with hyper wasn't highlighting my .localhost domains, which is a legitimate TLD and used by caddy server to allow SSL certs locally.

Then I went down the rabbit hole of TLDs and found currently the longest TLDs are 14 chars which include .BANANAREPUBLIC, .COOKINGCHANNEL, .KERRYLOGISTICS, .WEATHERCHANNEL

I'm not regex expert, but I think this should work? 😀

wesbos added 2 commits January 5, 2022 16:28
I ran into this issue with hyper wasn't highlighting my `.localhost` domains, which is a legitimate TLD and used by caddy server to allow SSL certs locally.

Then I went down the rabbit hole of TLDs and found currently the longest TLDs are 14 chars which include .BANANAREPUBLIC, .COOKINGCHANNEL, .KERRYLOGISTICS, .WEATHERCHANNEL

I'm not regex expert, but I *think* this should work? 😀
@wesbos
Copy link
Copy Markdown
Contributor Author

wesbos commented Jan 5, 2022

Sorry just found .TRAVELERSINSURANCE which is 18 chars :)

@Bowero
Copy link
Copy Markdown

Bowero commented Jan 5, 2022

Well I am a self-declared Regex expert and this should definitely work.

Copy link
Copy Markdown
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

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

Looks good 🙂

@Tyriar Tyriar added this to the 4.17.0 milestone Jan 5, 2022
@Tyriar Tyriar merged commit 1fb1170 into xtermjs:master Jan 5, 2022
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.

3 participants