diff --git a/includes/handlers.inc b/includes/handlers.inc index a79aa5c..c8db13b 100644 --- a/includes/handlers.inc +++ b/includes/handlers.inc @@ -1086,11 +1086,11 @@ function views_break_phrase_string($str, &$handler = NULL) { // (commas) and split the string accordingly. If we have an 'and' operator, // spaces are treated as part of the word being split, but otherwise they are // treated the same as a plus sign. - $or_wildcard = '[^\s+,]'; + $or_wildcard = '[^+,]'; $and_wildcard = '[^+,]'; - if (preg_match("/^({$or_wildcard}+[+ ])+{$or_wildcard}+$/", $str)) { + if (preg_match("/^({$or_wildcard}+[+])+{$or_wildcard}+$/", $str)) { $handler->operator = 'or'; - $handler->value = preg_split('/[+ ]/', $str); + $handler->value = preg_split('/[+]/', $str); } elseif (preg_match("/^({$and_wildcard}+,)*{$and_wildcard}+$/", $str)) { $handler->operator = 'and';