DragonByte Tech
Well-known member
I am working on an addon to, among other things, allow @ mentions for user groups. In the case where a user's name and user group name is very similar (e.g. a user called
This issue can be easily avoided by changing this line
to this
then adding this function
With this simple change, addons can easily override this list, and you would also be making some small amount of progress on the TODO comment above the placeholder regex since you yourself can expand on that function in future updates
Thanks for considering
Fillip
Vet
and a user group called Veteran
) conflicts can occur because we cannot add new BBCode to the exclusion list.This issue can be easily avoided by changing this line
PHP:
'#\[(code|php|html|plain|media|url|img|user|quote)(=[^\]]*)?](.*)\[/\\1]#siU'
PHP:
'#\[(' . $this->getBbCodeStopList() . ')(=[^\]]*)?](.*)\[/\\1]#siU'
PHP:
protected function getBbCodeStopList()
{
return 'code|php|html|plain|media|url|img|user|quote';
}
With this simple change, addons can easily override this list, and you would also be making some small amount of progress on the TODO comment above the placeholder regex since you yourself can expand on that function in future updates
Thanks for considering
Fillip
Upvote
4