Fuck protocols.
This commit is contained in:
parent
e767f77bce
commit
40d550ab4e
@ -119,7 +119,7 @@ Linkify =
|
|||||||
range.setEnd range.endContainer, range.endOffset - i
|
range.setEnd range.endContainer, range.endOffset - i
|
||||||
|
|
||||||
# Make our link 'valid' if it is formatted incorrectly.
|
# Make our link 'valid' if it is formatted incorrectly.
|
||||||
unless /(https?|mailto|git|magnet|ftp|irc):/.test text
|
unless /(mailto:|.+:\/\/)/.test text
|
||||||
text = (
|
text = (
|
||||||
if /@/.test text
|
if /@/.test text
|
||||||
'mailto:'
|
'mailto:'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user