From 48a870057eab130cffe3059314893040f57cc213 Mon Sep 17 00:00:00 2001 From: tsukumi Date: Thu, 8 Aug 2024 05:50:34 +0900 Subject: [PATCH] =?UTF-8?q?Update:=20[Client][Panel/Twitter]=20=E5=85=A8?= =?UTF-8?q?=E8=A7=92=E3=83=8F=E3=83=83=E3=82=B7=E3=83=A5=E3=82=BF=E3=82=B0?= =?UTF-8?q?=E3=82=82=E3=83=AA=E3=83=B3=E3=82=AF=E5=8C=96=E3=81=95=E3=82=8C?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/Watch/Panel/Twitter/Tweet.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/Watch/Panel/Twitter/Tweet.vue b/client/src/components/Watch/Panel/Twitter/Tweet.vue index 414d0ff2..eb48e6fd 100644 --- a/client/src/components/Watch/Panel/Twitter/Tweet.vue +++ b/client/src/components/Watch/Panel/Twitter/Tweet.vue @@ -77,7 +77,7 @@ const displayedTweet = computed(() => tweet.value.retweeted_tweet || tweet.value const formatText = (text: string) => { const urlRegex = /(https?:\/\/[^\s]+)/g; const mentionRegex = /@(\w+)/g; - const hashtagRegex = /#([\w\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Han}ー]+)/gu; + const hashtagRegex = /[##]([\w\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Han}ー]+)/gu; // URLを先に処理し、プレースホルダーで置き換える const urls: string[] = [];