From: Rico Hoppe Date: Sat, 27 Apr 2024 17:29:18 +0000 (+0000) Subject: wiki: fix user mention preprocessor regex X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02ceb40e70048cbe3ed47741988d3aaa4af0df9a;p=ipfire.org.git wiki: fix user mention preprocessor regex Signed-off-by: Rico Hoppe Signed-off-by: Michael Tremer --- diff --git a/src/backend/wiki.py b/src/backend/wiki.py index 8edfb4e6..706b1822 100644 --- a/src/backend/wiki.py +++ b/src/backend/wiki.py @@ -995,7 +995,7 @@ class CVELinksPreprocessor(markdown.preprocessors.Preprocessor): class UserMentionPreprocessor(markdown.preprocessors.Preprocessor): - regex = re.compile(r"\b@(\w+)") + regex = re.compile(r"\W@(\w+)") def run(self, lines): for line in lines: