File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Plugins/Flow.Launcher.Plugin.Calculator Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -181,8 +181,8 @@ private static string PowMatchEvaluator(Match m)
181181 return m . Value ;
182182 }
183183
184- var arg1 = argsContent . Substring ( 0 , splitIndex ) . Trim ( ) ;
185- var arg2 = argsContent . Substring ( splitIndex + 1 ) . Trim ( ) ;
184+ var arg1 = argsContent [ .. splitIndex ] . Trim ( ) ;
185+ var arg2 = argsContent [ ( splitIndex + 1 ) .. ] . Trim ( ) ;
186186
187187 // Check for empty arguments which can happen with stray commas, e.g., pow(,5)
188188 if ( string . IsNullOrEmpty ( arg1 ) || string . IsNullOrEmpty ( arg2 ) )
@@ -259,7 +259,7 @@ private static bool IsValidGrouping(string[] parts, int[] groupSizes)
259259 return false ; // has groups, but culture defines none.
260260
261261 var firstPart = parts [ 0 ] ;
262- if ( firstPart . StartsWith ( "-" ) ) firstPart = firstPart . Substring ( 1 ) ;
262+ if ( firstPart . StartsWith ( '-' ) ) firstPart = firstPart [ 1 .. ] ;
263263 if ( firstPart . Length == 0 ) return false ; // e.g. ",123"
264264
265265 if ( firstPart . Length > groupSizes [ 0 ] ) return false ;
You can’t perform that action at this time.
0 commit comments