diff --git a/composables/misc.ts b/composables/misc.ts index 8f5a091dd..e3bdecc1b 100644 --- a/composables/misc.ts +++ b/composables/misc.ts @@ -1,7 +1,7 @@ import type { mastodon } from 'masto' export const UserLinkRE = /^(?:https:\/)?\/([^/]+)\/@([^/]+)$/ -export const TagLinkRE = /^https?:\/\/([^/]+)\/tags\/([^/]+)$/ +export const TagLinkRE = /^https?:\/\/([^/]+)\/tags\/([^/]+)\/?$/ export const HTMLTagRE = /<[^>]+>/g export function getDataUrlFromArr(arr: Uint8ClampedArray, w: number, h: number) {