From f8961720e0819be966fa090e2a78385b0766c3d0 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 3 Oct 2015 19:33:47 -0700 Subject: [PATCH] Support links split between 'domain' and '.tld/path'. --- src/Linkification/Linkify.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index 91eab942e..d976fa71d 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -46,7 +46,10 @@ Linkify = while (saved = snapshot.snapshotItem i++) if saved.nodeName is 'BR' - break + if snapshot.snapshotItem(i)?.data?.match /^\.[a-z]{2,6}\//i # link deliberately split + continue + else + break endNode = saved {data} = saved