From b3afe41723903229e9cf14c203f1cfd7ebe3802b Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Tue, 7 Mar 2023 22:35:40 +0900 Subject: [PATCH] fix HyperText matching --- packages/app/src/Element/Text.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app/src/Element/Text.tsx b/packages/app/src/Element/Text.tsx index 05c9997..eba63cc 100644 --- a/packages/app/src/Element/Text.tsx +++ b/packages/app/src/Element/Text.tsx @@ -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 ; } return a;