From ee7044615b12787a37c33baa24abbbbe5eefcaf0 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Wed, 20 May 2015 12:31:35 +0930 Subject: [PATCH] Make sure we don't parse post mentions as user mentions --- extensions/mentions/src/UserMentionsParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/mentions/src/UserMentionsParser.php b/extensions/mentions/src/UserMentionsParser.php index f499e7c24..51c463162 100644 --- a/extensions/mentions/src/UserMentionsParser.php +++ b/extensions/mentions/src/UserMentionsParser.php @@ -2,5 +2,5 @@ class UserMentionsParser extends MentionsParserAbstract { - protected $pattern = '/\B@(?P[a-z0-9_-]+)\b/i'; + protected $pattern = '/\B@(?P[a-z0-9_-]+)(?!#)/i'; }