mirror of
https://github.com/flarum/core.git
synced 2025-07-28 20:20:34 +02:00
Don't parse user mentions with a # ahead of them
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_-]+)/i';
|
protected $pattern = '/\B@(?P<username>[a-z0-9_-]+)\b/i';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user