Skip to content

Commit

Permalink
Update: [Client][Panel/Twitter] 全角ハッシュタグもリンク化されるようにする
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukumijima committed Aug 7, 2024
1 parent 0475f38 commit 48a8700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/Watch/Panel/Twitter/Tweet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [];
Expand Down

0 comments on commit 48a8700

Please sign in to comment.