Remove unnecessary code.

This commit is contained in:
zlsun
2014-06-16 14:08:11 +08:00
parent 12b03518ee
commit 6fdbc9cdfa
6 changed files with 4 additions and 7 deletions

View File

@@ -33,8 +33,7 @@ namespace Wox.Plugin.SystemPlugins
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
if (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>();