From 85ac040c2ff748a4c5d2fc67f421cd9e551bc4a7 Mon Sep 17 00:00:00 2001 From: Peter Budai Date: Sun, 23 Apr 2023 21:40:55 +0200 Subject: [PATCH] fix: Re-enable user card hover over mentions in posts (#1745) --- composables/misc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composables/misc.ts b/composables/misc.ts index 810e0d9f..8f5a091d 100644 --- a/composables/misc.ts +++ b/composables/misc.ts @@ -1,6 +1,6 @@ import type { mastodon } from 'masto' -export const UserLinkRE = /^https?:\/\/([^/]+)\/@([^/]+)$/ +export const UserLinkRE = /^(?:https:\/)?\/([^/]+)\/@([^/]+)$/ export const TagLinkRE = /^https?:\/\/([^/]+)\/tags\/([^/]+)$/ export const HTMLTagRE = /<[^>]+>/g