1
0
mirror of https://github.com/elk-zone/elk synced 2025-01-20 14:22:57 +09:00

chore: fix typo (#2681)

Signed-off-by: cuithon <dscs@outlook.com>
This commit is contained in:
cuithon 2024-03-12 15:58:20 +08:00 committed by GitHub
parent bc30a8bd82
commit 5a9546ec0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -138,7 +138,7 @@ const characterCount = computed(() => {
length -= fullMatch.length - (before + username).length - 1 // - 1 for the @
if (draft.value.mentions) {
// + 1 is needed as mentions always need a space seperator at the end
// + 1 is needed as mentions always need a space separator at the end
length += draft.value.mentions.map((mention) => {
const [handle] = mention.split('@')
return `@${handle}`