[frontend/pages] Fix profile view regex (ISH-655)

This commit is contained in:
Lilian 2024-12-07 21:39:45 +01:00
parent c032f56d37
commit 0ddb2a0d03
No known key found for this signature in database

View file

@ -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)