From 9c3b1105e28e829d82f70690fb1170eb89a467d1 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Fri, 10 Jun 2016 13:15:59 -0700 Subject: [PATCH] Check optional port clause after domain too --- addons/linkify/linkify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/linkify/linkify.js b/addons/linkify/linkify.js index 8b222564..344bc711 100644 --- a/addons/linkify/linkify.js +++ b/addons/linkify/linkify.js @@ -32,7 +32,7 @@ tldClause = '([a-z\\.]{2,6})', ipClause = '((\\d{1,3}\\.){3}\\d{1,3})', portClause = '(:\\d{1,5})', - hostClause = '((' + domainBodyClause + '\\.' + tldClause + ')|(' + ipClause + portClause + '?))', + hostClause = '((' + domainBodyClause + '\\.' + tldClause + ')|' + ipClause + ')' + portClause + '?', pathClause = '(\\/[\\/\\w\\.-]*)*', negatedPathCharacterSet = '[^\\/\\w\\.-]+', bodyClause = hostClause + pathClause,