Make modifiers case insensitive.

This commit is contained in:
James Cole 2020-03-09 18:13:04 +01:00
parent a939a5ba30
commit c218c70b1f
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -312,7 +312,7 @@ class Search implements SearchInterface
{
$parts = explode(':', $string);
if (2 === count($parts) && '' !== trim((string)$parts[1]) && '' !== trim((string)$parts[0])) {
$type = trim((string)$parts[0]);
$type = strtolower(trim((string)$parts[0]));
$value = trim((string)$parts[1]);
$value = trim(trim($value, '"\''));
if (in_array($type, $this->validModifiers, true)) {