From 320ed81555a86079a1d5dcfdf96bd77ee58af4e8 Mon Sep 17 00:00:00 2001 From: Christof Dorner Date: Fri, 28 Apr 2023 17:33:34 +0000 Subject: [PATCH] fix: detect Takahe hashtags correctly (#2024) --- composables/misc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composables/misc.ts b/composables/misc.ts index 8f5a091d..e3bdecc1 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) {