From a60e6db9209b63f0652261d813f3eddb7a16c58a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Dec 2025 23:36:01 +0000 Subject: [PATCH] Address code review feedback: replace deprecated substr() with substring() Co-authored-by: salmanmkc <32169182+salmanmkc@users.noreply.github.com> --- packages/glob/__tests__/windows-path-matching.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/glob/__tests__/windows-path-matching.test.ts b/packages/glob/__tests__/windows-path-matching.test.ts index afdbd49e..12a28f90 100644 --- a/packages/glob/__tests__/windows-path-matching.test.ts +++ b/packages/glob/__tests__/windows-path-matching.test.ts @@ -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/ + * 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