From 2cb298433111e2495af76c4b9bf96b4b62488312 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 3 Oct 2015 20:22:53 -0700 Subject: [PATCH] Improve split link detection of f8961720e0819be966fa090e2a78385b0766c3d0. --- 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 d976fa71d..baf875715 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -46,7 +46,7 @@ Linkify = while (saved = snapshot.snapshotItem i++) if saved.nodeName is 'BR' - if snapshot.snapshotItem(i)?.data?.match /^\.[a-z]{2,6}\//i # link deliberately split + if /^(https?:\/\/)?[a-z0-9\-\.]+$/i.test(word) and snapshot.snapshotItem(i)?.data?.match(/^(\.[a-z0-9\-]+)*\//i) # link deliberately split continue else break