@@ -32,7 +32,7 @@ public static (string Path, string Operator, string Value) Parse(string expressi
3232
3333 // Define operators in order of length (longer first) to avoid partial matches
3434 var operators = new [ ] { "gte" , "lte" , "not" , "eq" , "gt" , "lt" , "in" } ;
35-
35+
3636 for ( int i = 0 ; i < expr . Length ; i ++ )
3737 {
3838 // Skip if inside quotes
@@ -53,31 +53,31 @@ public static (string Path, string Operator, string Value) Parse(string expressi
5353 }
5454 continue ;
5555 }
56-
56+
5757 // Check for operator at this position (not in quotes)
5858 foreach ( var op in operators )
5959 {
60- if ( i + op . Length <= expr . Length &&
60+ if ( i + op . Length <= expr . Length &&
6161 expr . Substring ( i , op . Length ) . Equals ( op , StringComparison . OrdinalIgnoreCase ) )
6262 {
6363 // Verify it's surrounded by whitespace or string boundaries
6464 bool beforeOk = i == 0 || char . IsWhiteSpace ( expr [ i - 1 ] ) ;
6565 bool afterOk = i + op . Length == expr . Length || char . IsWhiteSpace ( expr [ i + op . Length ] ) ;
66-
66+
6767 if ( beforeOk && afterOk )
6868 {
6969 var path = expr . Substring ( 0 , i ) . Trim ( ) ;
7070 var value = expr . Substring ( i + op . Length ) . Trim ( ) ;
71-
71+
7272 if ( string . IsNullOrEmpty ( path ) || string . IsNullOrEmpty ( value ) )
7373 throw new ArgumentException ( $ "Invalid expression format: { expression } ") ;
74-
74+
7575 return ( path , op , value ) ;
7676 }
7777 }
7878 }
7979 }
80-
80+
8181 throw new ArgumentException ( $ "Invalid expression format: { expression } ") ;
8282 }
8383 }
0 commit comments