From 8ec78688b80e8d1c92cc71a61a442e5c5c17c974 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Thu, 27 Feb 2020 09:14:45 +1100 Subject: [PATCH] Add empty actionParameters check (#148) --- Wox.Core/Plugin/QueryBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wox.Core/Plugin/QueryBuilder.cs b/Wox.Core/Plugin/QueryBuilder.cs index b8ac419884..b01a93291c 100644 --- a/Wox.Core/Plugin/QueryBuilder.cs +++ b/Wox.Core/Plugin/QueryBuilder.cs @@ -24,7 +24,7 @@ namespace Wox.Core.Plugin { // use non global plugin for query actionKeyword = possibleActionKeyword; actionParameters = terms.Skip(1).ToList(); - search = rawQuery.Substring(actionKeyword.Length + 1); + search = actionParameters.Count > 0 ? rawQuery.Substring(actionKeyword.Length + 1) : string.Empty; } else { // non action keyword