diff --git a/common.js b/common.js index 3ee6c242e..c62d22686 100644 --- a/common.js +++ b/common.js @@ -281,7 +281,7 @@ export function getOSNameVersionArch() { function findWindowsVersion() { const version = os.version() - const match = version.match(/^Windows(?: Server)? (\d+) (?:Datacenter|Enterprise)/) + const match = version.match(/^Windows(?: Server)? (\d+) (?:Standard|Datacenter|Enterprise)/) if (match) { return match[1] } else { diff --git a/dist/index.js b/dist/index.js index 1c731bdb9..358fd668d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -614,7 +614,7 @@ function getOSNameVersionArch() { function findWindowsVersion() { const version = os.version() - const match = version.match(/^Windows(?: Server)? (\d+) (?:Datacenter|Enterprise)/) + const match = version.match(/^Windows(?: Server)? (\d+) (?:Standard|Datacenter|Enterprise)/) if (match) { return match[1] } else {