From 15c6a842c3e65203eda2d768b6bb828a4235919f Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Thu, 12 Oct 2023 16:19:24 +0200 Subject: url-p: optional @ prefix for "users" url --- lisp/mastodon.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp') diff --git a/lisp/mastodon.el b/lisp/mastodon.el index a37e0b2..04d2fe8 100644 --- a/lisp/mastodon.el +++ b/lisp/mastodon.el @@ -383,7 +383,7 @@ not, just browse the URL in the normal fashion." (save-match-data (or (string-match "^/@[^/]+$" query) (string-match "^/@[^/]+/[[:digit:]]+$" query) - (string-match "^/user[s]?/[[:alnum:]]+$" query) + (string-match "^/user[s]?/@?[[:alnum:]]+$" query) ; @: pleroma or soapbox (string-match "^/notice/[[:alnum:]]+$" query) (string-match "^/objects/[-a-f0-9]+$" query) (string-match "^/notes/[a-z0-9]+$" query) -- cgit v1.2.3