commit
8ce202ebf6
@ -35,7 +35,7 @@ export default function Text({ content, tags, creator }: TextProps) {
|
|||||||
.map(f => {
|
.map(f => {
|
||||||
if (typeof f === "string") {
|
if (typeof f === "string") {
|
||||||
return splitByUrl(f).map(a => {
|
return splitByUrl(f).map(a => {
|
||||||
if (a.startsWith("http")) {
|
if (a.match(/^https?:\/\//)) {
|
||||||
return <HyperText key={a} link={a} creator={creator} />;
|
return <HyperText key={a} link={a} creator={creator} />;
|
||||||
}
|
}
|
||||||
return a;
|
return a;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user