diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cc9209..e26bfa6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -90,6 +90,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | ------- | ---------- | --------------------------------------------------------------------------------------------------- | +| 5.25.4 | 2025-01-06 | `versions()` improved powerShell parsing (windows) | | 5.25.3 | 2025-01-05 | `memLayout()` improved speed parsing (windows) | | 5.25.2 | 2025-01-05 | `battery()` improved serial and model parsing (macOS) | | 5.25.1 | 2025-01-05 | `cpuCurrentSpeed()` Deno CPU speed workarround (linux) | diff --git a/docs/history.html b/docs/history.html index 8931a88..bba7c52 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,11 @@ + + 5.25.4 + 2024-01-06 + versions() powerShell parsing (windows) + 5.25.3 2024-01-05 diff --git a/docs/index.html b/docs/index.html index b99a8cc..cd97e88 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
- 3
New Version: 5.25.3
+ 3
New Version: 5.25.4
diff --git a/lib/osinfo.js b/lib/osinfo.js index e07488f..3d19623 100644 --- a/lib/osinfo.js +++ b/lib/osinfo.js @@ -1081,7 +1081,7 @@ function versions(apps, callback) { if ({}.hasOwnProperty.call(appsObj.versions, 'powershell')) { if (_windows) { util.powerShell('$PSVersionTable').then(stdout => { - const lines = stdout.toString().split('\n').map(line => line.replace(/ +/g, ' ').replace(/ +/g, ':')); + const lines = stdout.toString().toLowerCase().split('\n').map(line => line.replace(/ +/g, ' ').replace(/ +/g, ':')); appsObj.versions.powershell = util.getValue(lines, 'psversion'); functionProcessed(); });