Fix spurious linkification bug on infinity-based sites. #2356

This commit is contained in:
ccd0 2019-12-17 00:50:50 -08:00
parent ae61c3c3f8
commit 4fdea5d52d

View File

@ -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