mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/10423] Match multiple wildcards
Multiple wildcards are removed from the string if there is no word before or after them. If there is a word before or after them, they are just replaced with a single one. PHPBB3-10423
This commit is contained in:
@@ -24,6 +24,8 @@ class phpbb_functions_content_phpbb_clean_search_string_test extends phpbb_test_
|
||||
array('* *test*', '*test*'),
|
||||
array('test test * test', 'test test test'),
|
||||
array(' some wild*cards * between wo*rds ', 'some wild*cards between wo*rds'),
|
||||
array(' we * now have*** multiple wild***cards * ', 'we now have* multiple wild*cards'),
|
||||
array('pi is *** . * **** * *****', 'pi is .'),
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user