Address code review feedback: replace deprecated substr() with substring()

Co-authored-by: salmanmkc <32169182+salmanmkc@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-10 23:36:01 +00:00
parent c050f7bc2e
commit a60e6db920
@@ -1,6 +1,6 @@
/**
* Test to validate that glob works correctly on Windows with backslash paths
* This test validates the fix for: https://github.com/actions/toolkit/issues/<issue_number>
* This test validates the fix for glob not working on GitHub's Windows runners
*/
import * as path from 'path'
@@ -69,7 +69,7 @@ describe('Windows path matching', () => {
return
}
const currentDrive = process.cwd().substr(0, 2)
const currentDrive = process.cwd().substring(0, 2)
const pattern = new Pattern(`${currentDrive}\\**\\*.txt`)
// Should match .txt files at any depth