From e9366cdebbd4c28a54bd83b22670500fd1854b18 Mon Sep 17 00:00:00 2001 From: Alan Rezende Date: Wed, 19 Oct 2016 00:56:35 -0200 Subject: 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 --- app/Core/Filter/Lexer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Core') 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', ); -- cgit v1.2.3