mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-22 11:18:52 +00:00
[ticket/11768] Reorganized code for readability
No functional change intended PHPBB3-11768
This commit is contained in:
parent
dc303cbc99
commit
e0bb446c57
1 changed files with 3 additions and 2 deletions
|
@ -167,8 +167,9 @@ class factory implements \phpbb\textformatter\cache
|
|||
$configurator->attributeFilters->add('#local_url', $filter);
|
||||
$configurator->attributeFilters->add('#relative_url', $filter);
|
||||
|
||||
$regexp = '!^([\p{L}\p{N}\-+,_. ]+)$!Du';
|
||||
$configurator->attributeFilters->add('#inttext', new RegexpFilter($regexp));
|
||||
// INTTEXT regexp from acp_bbcodes
|
||||
$filter = new RegexpFilter('!^([\p{L}\p{N}\-+,_. ]+)$!Du');
|
||||
$configurator->attributeFilters->add('#inttext', $filter);
|
||||
|
||||
// Create custom filters for Flash restrictions, which use the same values as the image
|
||||
// restrictions but have their own error message
|
||||
|
|
Loading…
Add table
Reference in a new issue