Skip to content

Commit

Permalink
remove cited link
Browse files Browse the repository at this point in the history
  • Loading branch information
kavos113 committed Sep 4, 2024
1 parent 6d1320e commit c6902ef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/Message.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ onMounted( async () => {
}
await extraceFileUrls()
extractCitation()
})
const extraceFileUrls = async () => {
Expand All @@ -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, "")
}
</script>

<template>
Expand Down

0 comments on commit c6902ef

Please sign in to comment.