Skip to content

Commit dfadbba

Browse files
committed
- Update regex to match implied expectations from related comments.
1 parent 5d4929e commit dfadbba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export function getPlatformDetails(): IPlatformDetails {
7878
*/
7979
export class PowerShellExeFinder {
8080
// This is required, since parseInt("7-preview") will return 7.
81-
private static IntRegex = /^\d+$/;
81+
private static IntRegex = /^\d$/;
8282
private static PwshMsixRegex = /^Microsoft.PowerShell_.*/;
8383
private static PwshPreviewMsixRegex = /^Microsoft.PowerShellPreview_.*/;
8484
private winPS: IPossiblePowerShellExe | undefined;

0 commit comments

Comments
 (0)