chore: update lint
This commit is contained in:
parent
c7558ee7c5
commit
9465c2fe89
20 changed files with 164 additions and 124 deletions
|
@ -1,5 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
const props = defineProps<{
|
||||
defineProps<{
|
||||
max: number
|
||||
length: number
|
||||
}>()
|
||||
|
|
|
@ -81,7 +81,7 @@ const characterCount = $computed(() => {
|
|||
for (const [fullMatch] of text.matchAll(linkRegex))
|
||||
length -= fullMatch.length - Math.min(maxLength, fullMatch.length)
|
||||
|
||||
for (const [fullMatch, before, handle, username] of text.matchAll(countableMentionRegex))
|
||||
for (const [fullMatch, before, _handle, username] of text.matchAll(countableMentionRegex))
|
||||
length -= fullMatch.length - (before + username).length - 1 // - 1 for the @
|
||||
|
||||
if (draft.mentions) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue