1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-19 15:01:33 +02:00

[ticket/13713] Avoid same attributes for different types of IDs

PHPBB3-13713
This commit is contained in:
lavigor
2020-05-18 03:35:17 +03:00
committed by Marc Alexander
parent 9905e54013
commit e2c50eae68
3 changed files with 24 additions and 27 deletions

View File

@@ -85,8 +85,10 @@ class factory implements \phpbb\textformatter\cache_interface
'list' => '[LIST type={HASHMAP=1:decimal,a:lower-alpha,A:upper-alpha,i:lower-roman,I:upper-roman;optional;postFilter=#simpletext} #createChild=LI]{TEXT}[/LIST]',
'li' => '[* $tagName=LI]{TEXT}[/*]',
'mention' =>
"[MENTION={PARSE=/^(?<type>[ug]):(?<id>\d+)$/}
"[MENTION={PARSE=/^g:(?'group_id'\d+)|u:(?'user_id'\d+)$/}
group_id={UINT;optional}
profile_url={URL;optional;postFilter=#false}
user_id={UINT;optional}
]{TEXT}[/MENTION]",
'quote' =>
"[QUOTE