summaryrefslogtreecommitdiff
path: root/app/Core
diff options
context:
space:
mode:
authorAlan Rezende <ar@arcriacoes.com.br>2016-10-19 00:56:35 -0200
committerGitHub <noreply@github.com>2016-10-19 00:56:35 -0200
commite9366cdebbd4c28a54bd83b22670500fd1854b18 (patch)
tree52fc2ce8799657ffeb64130124fe79d7a46987a4 /app/Core
parent5ab4cfd35b7550123bfbf9b1d57bf2aefc56f786 (diff)
Search with 2+ arguments using double quotes now working
Bug Fixed: when searching like `column:"test column" column:"test other column"` the regex was matching all the text from the first quote to the last one ignoring the ones between Now it matches the first quote with next. Without the change the search doesn't work with 2 or more arguments using quotes
Diffstat (limited to 'app/Core')
-rw-r--r--app/Core/Filter/Lexer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Core/Filter/Lexer.php b/app/Core/Filter/Lexer.php
index 3ff57641..76658412 100644
--- a/app/Core/Filter/Lexer.php
+++ b/app/Core/Filter/Lexer.php
@@ -29,7 +29,7 @@ class Lexer
'/^([<=>]{0,2}[0-9]{4}-[0-9]{2}-[0-9]{2})/' => 'T_STRING',
'/^([<=>]{1,2}\w+)/u' => 'T_STRING',
'/^([<=>]{1,2}".+")/' => 'T_STRING',
- '/^("(.+)")/' => 'T_STRING',
+ '/^("(.*?)")/' => 'T_STRING',
'/^(\S+)/u' => 'T_STRING',
'/^(#\d+)/' => 'T_STRING',
);