Dont return an array from linkify if the result is just a single node
This commit is contained in:
parent
8684e2dea2
commit
d96cf68d95
@ -51,8 +51,8 @@ export default function linkify(text) {
|
||||
}
|
||||
}
|
||||
|
||||
if (result.length === 1 && typeof result[0] === 'string') {
|
||||
return text;
|
||||
if (result.length === 1) {
|
||||
return result[0];
|
||||
}
|
||||
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user