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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend TLD matching to 14 chars #3596

Merged
merged 2 commits into from Jan 5, 2022
Merged

Extend TLD matching to 14 chars #3596

merged 2 commits into from Jan 5, 2022

Conversation

wesbos
Copy link
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? 馃榾

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
Contributor Author

wesbos commented Jan 5, 2022

Sorry just found .TRAVELERSINSURANCE which is 18 chars :)

@Bowero
Copy link

Bowero commented Jan 5, 2022

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

Copy link
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.

None yet

3 participants