From 0ddb2a0d03cf75bf64fedeb1e64e6a86fbfcd577 Mon Sep 17 00:00:00 2001 From: Lilian Date: Sat, 7 Dec 2024 21:39:45 +0100 Subject: [PATCH] [frontend/pages] Fix profile view regex (ISH-655) --- Iceshrimp.Frontend/Pages/ProfileView.razor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Iceshrimp.Frontend/Pages/ProfileView.razor b/Iceshrimp.Frontend/Pages/ProfileView.razor index b46f2b96..c8023285 100644 --- a/Iceshrimp.Frontend/Pages/ProfileView.razor +++ b/Iceshrimp.Frontend/Pages/ProfileView.razor @@ -119,7 +119,7 @@ } else { - var pattern = "^@(.[^@]+)@?(.+)?$"; + var pattern = "^@([^@]+)@?(.+)?$"; var matches = Regex.Match(User, pattern); var userResponse = await Api.Users.LookupUserAsync(matches.Groups[1].Value, matches.Groups[2].Value); if (userResponse is null)