From 2cc97989d33b57c0396731c28d5cdc841a5710b2 Mon Sep 17 00:00:00 2001 From: Ayaan Zaidi Date: Wed, 15 Apr 2026 10:31:53 +0530 Subject: [PATCH] style: use non-capturing pnpm regex group --- scripts/pnpm-runner.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pnpm-runner.mjs b/scripts/pnpm-runner.mjs index 307030537f8..63abe522aae 100644 --- a/scripts/pnpm-runner.mjs +++ b/scripts/pnpm-runner.mjs @@ -4,7 +4,7 @@ import path from "node:path"; import { buildCmdExeCommandLine } from "./windows-cmd-helpers.mjs"; function isPnpmExecPath(value) { - return /^pnpm(?:-cli)?(?:\.([cm]?js|cmd|exe))?$/.test(path.basename(value).toLowerCase()); + return /^pnpm(?:-cli)?(?:\.(?:[cm]?js|cmd|exe))?$/.test(path.basename(value).toLowerCase()); } function hasScriptShebang(value) {