Improve split link detection of f8961720e0819be966fa090e2a78385b0766c3d0.

This commit is contained in:
ccd0 2015-10-03 20:22:53 -07:00
parent 7d0bc85153
commit 2cb2984331

View File

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