mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-24 00:51:43 +00:00
fixed link parsing
This commit is contained in:
parent
fda9ef6c63
commit
abd12eac97
1 changed files with 5 additions and 1 deletions
|
|
@ -8,7 +8,11 @@ export default (order) => { return {
|
||||||
match: function(source) {
|
match: function(source) {
|
||||||
const match = linkify.match(source)
|
const match = linkify.match(source)
|
||||||
|
|
||||||
if(match === null) {
|
if(
|
||||||
|
match === null ||
|
||||||
|
match[0].index !== 0 ||
|
||||||
|
match.length === 0
|
||||||
|
) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue