Skip to content

Commit 1fb1170

Browse files
authored
Merge pull request #3596 from wesbos/patch-1
Extend TLD matching to 14 chars
2 parents 2866977 + 84548d5 commit 1fb1170

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/xterm-addon-web-links/src/WebLinksAddon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const protocolClause = '(https?:\\/\\/)';
1010
const domainCharacterSet = '[\\da-z\\.-]+';
1111
const negatedDomainCharacterSet = '[^\\da-z\\.-]+';
1212
const domainBodyClause = '(' + domainCharacterSet + ')';
13-
const tldClause = '([a-z\\.]{2,6})';
13+
const tldClause = '([a-z\\.]{2,18})';
1414
const ipClause = '((\\d{1,3}\\.){3}\\d{1,3})';
1515
const localHostClause = '(localhost)';
1616
const portClause = '(:\\d{1,5})';

0 commit comments

Comments
 (0)