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
This commit is contained in:
Alan Rezende 2016-10-19 00:56:35 -02:00 committed by GitHub
parent 5ab4cfd35b
commit e9366cdebb
1 changed files with 1 additions and 1 deletions

View File

@ -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',
);