]> git.ipfire.org Git - people/ric9/ipfire.org.git/commit
wiki.py: make regex for user mentions only match the mention backend
authorRico Hoppe <rico.hoppe@ipfire.org>
Tue, 7 May 2024 21:11:28 +0000 (21:11 +0000)
committerRico Hoppe <rico.hoppe@ipfire.org>
Tue, 7 May 2024 21:11:28 +0000 (21:11 +0000)
commit0198823a1a0a33fbb2d352d30d76c7cf94e70cd4
tree82c914a386b534e90cbc7ab1bba9c8aa17f24b76
parentcc26855b900effedff262514f712c05236f11ab5
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>
src/backend/wiki.py