Not a bug Allow accepting backslash in extensionPoint

TickTackk

Well-known member
Affected version
2.*
(not really a bug)
I'm talking about
PHP:
'extensionPoint' => '<!--\[XF:[a-zA-Z0-9_:-]+\]-->',
inside src\XF\Template\Compiler\Lexer.php
So instead of this:
Code:
<!--[XF:TickTackk_SenjougaharaBestWaifu:public_menu:top]-->
We can use this:
Code:
<!--[XF:TickTackk\SenjougaharaBestWaifu:public_menu:top]-->
I feel this could allow following add-on id format even inside template names
 
I've changed it to accept forward slash instead - that's what appears in the add-on ID, whereas it's only converted to backslash when referring to PHP class names.
 
Back
Top Bottom