fixed link parsing

This commit is contained in:
brecert 2019-11-13 13:41:30 -05:00
parent fda9ef6c63
commit abd12eac97

View file

@ -8,7 +8,11 @@ export default (order) => { return {
match: function(source) {
const match = linkify.match(source)
if(match === null) {
if(
match === null ||
match[0].index !== 0 ||
match.length === 0
) {
return null
}