diff --git a/src/components/Message.vue b/src/components/Message.vue index 2a012ba..8eb32bd 100644 --- a/src/components/Message.vue +++ b/src/components/Message.vue @@ -32,6 +32,7 @@ onMounted( async () => { } await extraceFileUrls() + extractCitation() }) const extraceFileUrls = async () => { @@ -47,6 +48,12 @@ const extraceFileUrls = async () => { } } } + +const extractCitation = () => { + const re = /https:\/\/q.trap.jp\/messages\/[0-9a-zA-Z-]{36}/g + console.log(content.value.match(re)) + content.value = content.value.replaceAll(re, "") +}