mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-19 07:08:09 +01:00
[ticket/11288] fix regex in postgres
Postgres search backend now uses updated regex being used by mysql search backend. PHPBB3-11288
This commit is contained in:
parent
3a30bd2753
commit
bfdc6e1930
@ -214,7 +214,7 @@ class phpbb_search_fulltext_postgres extends phpbb_search_base
|
||||
{
|
||||
if ($terms == 'all')
|
||||
{
|
||||
$match = array('#\sand\s#iu', '#\sor\s#iu', '#\snot\s#iu', '#\+#', '#-#', '#\|#');
|
||||
$match = array('#\sand\s#iu', '#\sor\s#iu', '#\snot\s#iu', '#(^|\s)\+#', '#(^|\s)-#', '#(^|\s)\|#');
|
||||
$replace = array(' +', ' |', ' -', ' +', ' -', ' |');
|
||||
|
||||
$keywords = preg_replace($match, $replace, $keywords);
|
||||
|
Loading…
x
Reference in New Issue
Block a user