mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
fix index out of range exception
occurs when query contains more than one whitespace eg. 'sql manag'
This commit is contained in:
parent
5040f09f0c
commit
e4b017b304
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ namespace Wox.Infrastructure
|
|||
|
||||
var queryWithoutCase = opt.IgnoreCase ? query.ToLower() : query;
|
||||
|
||||
var querySubstrings = queryWithoutCase.Split(' ');
|
||||
var querySubstrings = queryWithoutCase.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
|
||||
int currentQuerySubstringIndex = 0;
|
||||
var currentQuerySubstring = querySubstrings[currentQuerySubstringIndex];
|
||||
var currentQuerySubstringCharacterIndex = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue