From 774fbae45b5f8d4f0f67a37e546285350e74eb35 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Aug 06 2015 16:16:35 +0000 Subject: Adjust the @user regex to work when @user is the first text in a comment --- diff --git a/pagure/pfmarkdown.py b/pagure/pfmarkdown.py index ec79c67..eaaca3d 100644 --- a/pagure/pfmarkdown.py +++ b/pagure/pfmarkdown.py @@ -30,7 +30,7 @@ import pagure import pagure.lib -MENTION_RE = r'[^|\w]@(\w+)' +MENTION_RE = r'^(.*?)@(\w+)' EXPLICIT_FORK_ISSUE_RE = r'(\w+)/(\w+)#([0-9]+)' EXPLICIT_MAIN_ISSUE_RE = r'[^|\w](?