You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improves time unit parsing by using a more concise loop and clarifies variable types.
Refactors wildcard tests for better readability and consistency by using `string[]` for test inputs and `int` for index variables.
@@ -104,10 +104,10 @@ public void TestInTwoPartContext()
104
104
}
105
105
106
106
// Find TO and test parsing after it
107
-
vartoIndex=input.IndexOf(" TO ",StringComparison.OrdinalIgnoreCase);
107
+
inttoIndex=input.IndexOf(" TO ",StringComparison.OrdinalIgnoreCase);
108
108
if(toIndex>=0)
109
109
{
110
-
varafterTo=toIndex+4;
110
+
intafterTo=toIndex+4;
111
111
match=parser.Regex.Match(input,afterTo);
112
112
_logger.LogInformation(" After TO at position {Position}: Success: {Success}, Value: '{Value}', Index: {Index}, Length: {Length}",afterTo,match.Success,match.Value,match.Index,match.Length);
0 commit comments