From 1a622d2df8ad94e7a1038c5b36aabd5a82416d22 Mon Sep 17 00:00:00 2001 From: Tangel Date: Tue, 14 Nov 2023 01:57:36 +0000 Subject: [PATCH] update --- src/fetch/webfinger.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fetch/webfinger.rs b/src/fetch/webfinger.rs index a8ddb15..91c31cd 100644 --- a/src/fetch/webfinger.rs +++ b/src/fetch/webfinger.rs @@ -95,7 +95,7 @@ where // Regex to extract usernames from webfinger query. Supports different alphabets using `\p{L}`. // TODO: would be nice if we could implement this without regex and remove the dependency let regex = - Regex::new(&format!(r"^acct:([\p{{L}}0-9_]+)@{}$", data.domain())).map_err(Error::other)?; + Regex::new(&format!(r"^acct:@?([\p{{L}}0-9_]+)@{}$", data.domain())).map_err(Error::other)?; Ok(regex .captures(query) .and_then(|c| c.get(1))