mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Merge pull request #3131 from cpmsmith/patch-1
Fix search modifiers claiming the whole query
This commit is contained in:
commit
a280319a0b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user