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