Make sure we don't parse post mentions as user mentions

This commit is contained in:
Toby Zerner 2015-05-20 12:31:35 +09:30
parent 643726df43
commit ee7044615b

View File

@ -2,5 +2,5 @@
class UserMentionsParser extends MentionsParserAbstract class UserMentionsParser extends MentionsParserAbstract
{ {
protected $pattern = '/\B@(?P<username>[a-z0-9_-]+)\b/i'; protected $pattern = '/\B@(?P<username>[a-z0-9_-]+)(?!#)/i';
} }