Skip to content

Commit 116a6cb

Browse files
Copilotbaronfel
andcommitted
Use char.IsDigit instead of manual ASCII range check
Co-authored-by: baronfel <[email protected]>
1 parent 721ed1a commit 116a6cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Build/Evaluation/Expander/WellKnownFunctions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ internal static bool TryExecuteWellKnownFunction(string methodName, Type receive
882882
if (ParseArgs.TryGetArg(args, out string? arg0) && arg0?.Length == 1)
883883
{
884884
char c = arg0[0];
885-
returnVal = c >= '0' && c <= '9';
885+
returnVal = char.IsDigit(c);
886886
return true;
887887
}
888888
}

0 commit comments

Comments
 (0)