From dfadbbabb078861d2a886b1a2f6ff80b8136dfe1 Mon Sep 17 00:00:00 2001 From: Taylor Marvin Date: Sun, 29 Jun 2025 04:54:09 -0700 Subject: [PATCH] - Update regex to match implied expectations from related comments. --- src/platform.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform.ts b/src/platform.ts index 76ca5992ed..aafaaf126f 100644 --- a/src/platform.ts +++ b/src/platform.ts @@ -78,7 +78,7 @@ export function getPlatformDetails(): IPlatformDetails { */ export class PowerShellExeFinder { // This is required, since parseInt("7-preview") will return 7. - private static IntRegex = /^\d+$/; + private static IntRegex = /^\d$/; private static PwshMsixRegex = /^Microsoft.PowerShell_.*/; private static PwshPreviewMsixRegex = /^Microsoft.PowerShellPreview_.*/; private winPS: IPossiblePowerShellExe | undefined;