From 4fdea5d52d72e6fa746a74d94ff0a517ffdb6040 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 17 Dec 2019 00:50:50 -0800 Subject: [PATCH] Fix spurious linkification bug on infinity-based sites. #2356 --- 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 7a82bd1a7..8c2ffa4d1 100644 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -42,7 +42,7 @@ Linkify = test.lastIndex = 0 while (saved = snapshot.snapshotItem i++) - if saved.nodeName is 'BR' + if saved.nodeName is 'BR' or (saved.parentElement.nodeName is 'P' and !saved.previousSibling) if ( # link deliberately split (part1 = word.match /(https?:\/\/)?([a-z\d-]+\.)*[a-z\d-]+$/i) and