mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-18 10:39:28 +00:00
Fix search modifiers claiming the whole query
The regex was only restricting to characters without the Unicode property Other, which is most characters, including spaces.
This commit is contained in:
@@ -123,7 +123,7 @@ class Search implements SearchInterface
|
||||
{
|
||||
$filteredQuery = app('steam')->cleanString($query);
|
||||
$this->originalQuery = $filteredQuery;
|
||||
$pattern = '/[[:alpha:]_]*:"?[\P{C}_-]*"?/ui';
|
||||
$pattern = '/[[:alpha:]_]*:(".*"|[\P{Zs}_-]*)/ui';
|
||||
$matches = [];
|
||||
preg_match_all($pattern, $filteredQuery, $matches);
|
||||
|
||||
|
Reference in New Issue
Block a user