* fixes bug 13682
* the regex for user mentions used to match whitespace in front of the @
symbol. Through using \B it stops matching "any non word charakter"
and only matches @'s after non-word boundaries.
Signed-off-by: Rico Hoppe <rico.hoppe@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
class UserMentionPreprocessor(markdown.preprocessors.Preprocessor):
- regex = re.compile(r"\W@(\w+)")
+ regex = re.compile(r"\B@(\w+)")
def run(self, lines):
for line in lines: