Merge pull request #3131 from cpmsmith/patch-1

Fix search modifiers claiming the whole query
This commit is contained in:
James Cole 2020-02-18 04:19:51 +00:00 committed by GitHub
commit a280319a0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,7 +123,7 @@ class Search implements SearchInterface
{ {
$filteredQuery = app('steam')->cleanString($query); $filteredQuery = app('steam')->cleanString($query);
$this->originalQuery = $filteredQuery; $this->originalQuery = $filteredQuery;
$pattern = '/[[:alpha:]_]*:"?[\P{C}_-]*"?/ui'; $pattern = '/[[:alpha:]_]*:(".*"|[\P{Zs}_-]*)/ui';
$matches = []; $matches = [];
preg_match_all($pattern, $filteredQuery, $matches); preg_match_all($pattern, $filteredQuery, $matches);