chore(deps): update dependency @antfu/eslint-config to ^2.19.0 (#2726)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: TAKAHASHI Shuuji <shuuji3@gmail.com> Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
parent
23f82d3296
commit
0fba07e6e5
32 changed files with 820 additions and 710 deletions
|
@ -4,7 +4,7 @@ export function getDisplayName(account: mastodon.v1.Account, options?: { rich?:
|
|||
const displayName = account.displayName || account.username || account.acct || ''
|
||||
if (options?.rich)
|
||||
return displayName
|
||||
return displayName.replace(/:([\w-]+?):/g, '')
|
||||
return displayName.replace(/:([\w-]+):/g, '')
|
||||
}
|
||||
|
||||
export function accountToShortHandle(acct: string) {
|
||||
|
|
|
@ -80,8 +80,9 @@ export function usePublish(options: {
|
|||
options.length < currentInstance.value.configuration.polls.maxOptions
|
||||
|| options[options.length - 1].trim().length === 0
|
||||
)
|
||||
)
|
||||
) {
|
||||
options = options.slice(0, options.length - 1)
|
||||
}
|
||||
|
||||
poll = { ...draftItem.value.params.poll, options }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue