Make search attributes not case sensitive

This commit is contained in:
Frederic Guillot
2016-07-14 11:39:59 -04:00
parent 48ee733f9e
commit 9496dfdb6d
3 changed files with 22 additions and 1 deletions

View File

@@ -69,7 +69,7 @@ class LexerBuilder
foreach ($attributes as $attribute) {
$this->filters[$attribute] = $filter;
$this->lexer->addToken(sprintf("/^(%s:)/", $attribute), $attribute);
$this->lexer->addToken(sprintf("/^(%s:)/i", $attribute), $attribute);
if ($default) {
$this->lexer->setDefaultToken($attribute);