From c872009ce0684a2959a2dff227275984a4f769d1 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 7 Dec 2014 03:52:29 -0800 Subject: [PATCH] Need to account for subdomains now that regexp is being used to clean start of link. --- src/Linkification/Linkify.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index 2e06952fe..3364d8286 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -88,7 +88,7 @@ Linkify = [a-z\d%/] ) | # This should account for virtually all links posted without http: - [-a-z\d]+[.]( + ([-a-z\d]+[.])+( aero|asia|biz|cat|com|coop|info|int|jobs|mobi|moe|museum|name|net|org|post|pro|tel|travel|xxx|edu|gov|mil|[a-z]{2} )([:/]|(?!.)) | # IPv4 Addresses