mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 22:43:31 +08:00
Fix #58: don't calc when input.length <= 2
This commit is contained in:
parent
bc85b3599e
commit
c068366ae2
@ -34,7 +34,7 @@ namespace Wox.Plugin.System
|
||||
protected override List<Result> QueryInternal(Query query)
|
||||
{
|
||||
if (string.IsNullOrEmpty(query.RawQuery)
|
||||
|| query.RawQuery.Length < 2 // don't affect when user only input "e" or "i" keyword
|
||||
|| query.RawQuery.Length <= 2 // don't affect when user only input "e" or "i" keyword
|
||||
|| !regValidExpressChar.IsMatch(query.RawQuery)
|
||||
|| !IsBracketComplete(query.RawQuery)) return new List<Result>();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user