From bc85b3599ef426fd1d77206780ff15abd179ecf9 Mon Sep 17 00:00:00 2001 From: Yeechan Lu Date: Wed, 19 Mar 2014 22:32:01 +0800 Subject: [PATCH] Revert "Limit Calculator trigger must has one number at least" This reverts commit fe124310def2121520c4cc4588a3a0ee2e563ba7. --- Wox.Plugin.System/Calculator.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Wox.Plugin.System/Calculator.cs b/Wox.Plugin.System/Calculator.cs index 04ddf7f06..a1863507a 100644 --- a/Wox.Plugin.System/Calculator.cs +++ b/Wox.Plugin.System/Calculator.cs @@ -20,7 +20,6 @@ namespace Wox.Plugin.System @"==|~=|&&|\|\||" + @"[ei]|[0-9]|[\+\-\*\/\^\., ""]|[\(\)\|\!\[\]]" + @")+$", RegexOptions.Compiled); - private static Regex regHasNumber = new Regex(@"[0-9]", RegexOptions.Compiled); private static Regex regBrackets = new Regex(@"[\(\)\[\]]", RegexOptions.Compiled); private static ParseContext yampContext = null; private PluginInitContext context { get; set; } @@ -36,7 +35,6 @@ namespace Wox.Plugin.System { if (string.IsNullOrEmpty(query.RawQuery) || query.RawQuery.Length < 2 // don't affect when user only input "e" or "i" keyword - || !regHasNumber.IsMatch(query.RawQuery) // must has one number || !regValidExpressChar.IsMatch(query.RawQuery) || !IsBracketComplete(query.RawQuery)) return new List();