mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 17:57:04 +08:00
Make sure we don't parse post mentions as user mentions
This commit is contained in:
parent
643726df43
commit
ee7044615b
|
@ -2,5 +2,5 @@
|
|||
|
||||
class UserMentionsParser extends MentionsParserAbstract
|
||||
{
|
||||
protected $pattern = '/\B@(?P<username>[a-z0-9_-]+)\b/i';
|
||||
protected $pattern = '/\B@(?P<username>[a-z0-9_-]+)(?!#)/i';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user