From 98e06189e9d85a1bce5ec659e4af8104d176b47a Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Sep 28 2015 08:19:05 +0000 Subject: Fix the mention regex (@user) to include the text in front of it Otherwise a comment such as: what do you think @user? was becoming: @user? --- diff --git a/pagure/pfmarkdown.py b/pagure/pfmarkdown.py index f16ee46..9f86b8f 100644 --- a/pagure/pfmarkdown.py +++ b/pagure/pfmarkdown.py @@ -30,7 +30,7 @@ import pagure import pagure.lib -MENTION_RE = r'^(.*?)@(\w+)' +MENTION_RE = r'@(\w+)' EXPLICIT_FORK_ISSUE_RE = r'(\w+)/(\w+)#([0-9]+)' EXPLICIT_MAIN_ISSUE_RE = r'[^|\w](?