mirror of
https://github.com/flarum/framework.git
synced 2025-04-26 22:54:03 +08:00
Don't parse user mentions with a # ahead of them
This commit is contained in:
parent
2101250eaa
commit
4080a76a99
@ -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';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user