]> git.ipfire.org Git - ipfire.org.git/commit
wiki.py: make regex for user mentions only match the mention
authorRico Hoppe <rico.hoppe@ipfire.org>
Tue, 7 May 2024 21:11:28 +0000 (21:11 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 10 May 2024 12:17:02 +0000 (12:17 +0000)
commit04f3e83307b355462b13627853045b0172d2c6dc
tree82c914a386b534e90cbc7ab1bba9c8aa17f24b76
parent02ceb40e70048cbe3ed47741988d3aaa4af0df9a
wiki.py: make regex for user mentions only match the mention

* 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>
src/backend/wiki.py