From 40d550ab4e585a35549ff22c5eb13c7e70baf027 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Sat, 22 Mar 2014 12:32:06 -0700 Subject: [PATCH] Fuck protocols. --- 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 48968fd64..cfc26e59e 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -119,7 +119,7 @@ Linkify = range.setEnd range.endContainer, range.endOffset - i # Make our link 'valid' if it is formatted incorrectly. - unless /(https?|mailto|git|magnet|ftp|irc):/.test text + unless /(mailto:|.+:\/\/)/.test text text = ( if /@/.test text 'mailto:'