File tree Expand file tree Collapse file tree 1 file changed +0
-36
lines changed
Plugins/Flow.Launcher.Plugin.Calculator Expand file tree Collapse file tree 1 file changed +0
-36
lines changed Original file line number Diff line number Diff line change @@ -48,18 +48,6 @@ public List<Result> Query(Query query)
48
48
return new List < Result > ( ) ;
49
49
}
50
50
51
- if ( ! IsBracketComplete ( query . Search ) )
52
- {
53
- return new List < Result >
54
- {
55
- new Result
56
- {
57
- Title = Localize . flowlauncher_plugin_calculator_expression_not_complete ( ) ,
58
- IcoPath = "Images/calculator.png"
59
- }
60
- } ;
61
- }
62
-
63
51
try
64
52
{
65
53
var expression = NumberRegex . Replace ( query . Search , m => NormalizeNumber ( m . Value ) ) ;
@@ -283,30 +271,6 @@ private string GetDecimalSeparator()
283
271
} ;
284
272
}
285
273
286
- private static bool IsBracketComplete ( string query )
287
- {
288
- var matchs = RegBrackets . Matches ( query ) ;
289
- var leftBracketCount = 0 ;
290
- foreach ( Match match in matchs )
291
- {
292
- if ( match . Value == "(" || match . Value == "[" )
293
- {
294
- leftBracketCount ++ ;
295
- }
296
- else
297
- {
298
- leftBracketCount -- ;
299
- }
300
-
301
- if ( leftBracketCount < 0 )
302
- {
303
- return false ;
304
- }
305
- }
306
-
307
- return leftBracketCount == 0 ;
308
- }
309
-
310
274
public string GetTranslatedPluginTitle ( )
311
275
{
312
276
return Localize . flowlauncher_plugin_calculator_plugin_name ( ) ;
You can’t perform that action at this time.
0 commit comments