mirror of
https://github.com/actions/runner.git
synced 2025-12-12 05:37:01 +00:00
Update src/Runner.Worker/FileCommandManager.cs
Co-authored-by: Cory Miller <13227161+cory-miller@users.noreply.github.com>
This commit is contained in:
@@ -396,7 +396,7 @@ namespace GitHub.Runner.Worker
|
|||||||
}
|
}
|
||||||
|
|
||||||
// accepts a string, two indexes, and returns true if only whitespace chars exist between those two indexes (non-inclusive)
|
// accepts a string, two indexes, and returns true if only whitespace chars exist between those two indexes (non-inclusive)
|
||||||
private static bool CheckIfOnlyWhitespaceBetweenPositions(string str, int pos1, int pos2)
|
private static bool OnlyContainsWhiteSpaceBetweenPositions(string str, int pos1, int pos2)
|
||||||
{
|
{
|
||||||
// Check if the provided positions are valid
|
// Check if the provided positions are valid
|
||||||
if (pos1 < 0 || pos2 < 0 || pos1 >= str.Length || pos2 >= str.Length)
|
if (pos1 < 0 || pos2 < 0 || pos1 >= str.Length || pos2 >= str.Length)
|
||||||
|
|||||||
Reference in New Issue
Block a user