diff --git a/client/src/javascript/components/general/LinkedText.tsx b/client/src/javascript/components/general/LinkedText.tsx index 81cf6092..a49ccdb3 100644 --- a/client/src/javascript/components/general/LinkedText.tsx +++ b/client/src/javascript/components/general/LinkedText.tsx @@ -18,7 +18,7 @@ function isValidHttpUrl(s: string) { } const LinkedText: FC = ({text, className}: LinkedTextProps) => { - const nodes = text.split(/(?<=\s)(?!\s)(?:\b|\B)/).map((s) => + const nodes = text.split(/\s/).map((s) => isValidHttpUrl(s.trimEnd()) ? ( {s}