mirror of
https://github.com/flarum/core.git
synced 2025-08-06 16:36:47 +02:00
Make sure we don't parse post mentions as user mentions
This commit is contained in:
@@ -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';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user