[feature/twig] Fix BBCode parser

PHPBB3-11598