From 7302a05579fd941fe14396abe3da42ac782f40d2 Mon Sep 17 00:00:00 2001 From: trowacat Date: Wed, 6 Mar 2019 09:14:56 -0500 Subject: [PATCH] Interpret tld with 2 chars --- src/addons/webLinks/webLinks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addons/webLinks/webLinks.ts b/src/addons/webLinks/webLinks.ts index f0d69cc58d..49ff5ad11c 100644 --- a/src/addons/webLinks/webLinks.ts +++ b/src/addons/webLinks/webLinks.ts @@ -9,7 +9,7 @@ const protocolClause = '(https?:\\/\\/)'; const domainCharacterSet = '[\\da-z\\.-]+'; const negatedDomainCharacterSet = '[^\\da-z\\.-]+'; const domainBodyClause = '(' + domainCharacterSet + ')'; -const tldClause = '([a-z\\.]{2,6})'; +const tldClause = '([a-z\\.]{1,6})'; const ipClause = '((\\d{1,3}\\.){3}\\d{1,3})'; const localHostClause = '(localhost)'; const portClause = '(:\\d{1,5})';