Treat comma as a regular character when parsing search string #2687

This commit is contained in:
Kijin Sung 2026-03-29 16:26:10 +09:00
parent 057507d3d7
commit 5c858806b2

View file

@ -503,7 +503,7 @@ class VariableBase
// parse the value (text);
$value = str_replace('"', '"', $value);
$keywords = preg_split('/(\([^\)]*?\))|(\-?\"[^\"]*?\")|[\s,]+/', trim($value), 10, \PREG_SPLIT_NO_EMPTY | \PREG_SPLIT_DELIM_CAPTURE);
$keywords = preg_split('/(\([^\)]*?\))|(\-?\"[^\"]*?\")|[\s]+/', trim($value), 10, \PREG_SPLIT_NO_EMPTY | \PREG_SPLIT_DELIM_CAPTURE);
$conditions = array();
$operators = array('AND' => 'AND', 'OR' => 'OR', '|' => 'OR');