From 9918b4ee426f51f2ae15d8bc531c28b8d7cdebc5 Mon Sep 17 00:00:00 2001 From: Yeechan Lu Date: Mon, 17 Mar 2014 01:53:51 +0800 Subject: [PATCH] GetAllRemainingParameter trick --- Wox.Plugin/Query.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Wox.Plugin/Query.cs b/Wox.Plugin/Query.cs index b8b7135f6f..1717f014a0 100644 --- a/Wox.Plugin/Query.cs +++ b/Wox.Plugin/Query.cs @@ -35,10 +35,11 @@ namespace Wox.Plugin public string GetAllRemainingParameter() { - string[] strings = RawQuery.Split(' '); + + string[] strings = RawQuery.Split(new char[]{ ' ' }, 2, System.StringSplitOptions.None); if (strings.Length > 1) { - return RawQuery.Substring(RawQuery.IndexOf(' ') + 1); + return strings[1]; } return string.Empty;