Fix spurious linkification bug on infinity-based sites. #2356
This commit is contained in:
parent
ae61c3c3f8
commit
4fdea5d52d
@ -42,7 +42,7 @@ Linkify =
|
|||||||
test.lastIndex = 0
|
test.lastIndex = 0
|
||||||
|
|
||||||
while (saved = snapshot.snapshotItem i++)
|
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 (
|
if (
|
||||||
# link deliberately split
|
# link deliberately split
|
||||||
(part1 = word.match /(https?:\/\/)?([a-z\d-]+\.)*[a-z\d-]+$/i) and
|
(part1 = word.match /(https?:\/\/)?([a-z\d-]+\.)*[a-z\d-]+$/i) and
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user