From 17b9d6c5ec605c790d2d214e7a0b3130d7bf53e0 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Tue, 19 Mar 2024 06:01:33 +0100 Subject: [PATCH] wifiConnections() fixed formatting bssid (macOS) --- CHANGELOG.md | 1 + docs/history.html | 5 +++++ docs/index.html | 2 +- lib/wifi.js | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb355248..efa6cb31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -83,6 +83,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | ------- | ---------- | --------------------------------------------------------------------------------------------------- | +| 5.22.5 | 2024-03-19 | `wifiCOnnections()` fixed formatting bssid (macOS) | | 5.22.4 | 2024-03-16 | `uuid()` improved parsing machine id (linux) | | 5.22.3 | 2024-03-15 | `chassis()` improved parsing memory bank (windows) | | 5.22.2 | 2024-03-14 | `chassis()` type, assetTag, sku improved parsing (macOS) | diff --git a/docs/history.html b/docs/history.html index 1f8e7e3a..e5efcf1e 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,11 @@

Full version history

+ + 5.22.5 + 2024-03-19 + wifiConnections() fixed formatting bssid (macOS) + 5.22.4 2024-03-16 diff --git a/docs/index.html b/docs/index.html index edd41e2a..b2e98849 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.22.4
+
New Version: 5.22.5
diff --git a/lib/wifi.js b/lib/wifi.js index 06aa783c..30fc6453 100644 --- a/lib/wifi.js +++ b/lib/wifi.js @@ -541,7 +541,7 @@ function getVendor(model) { } function formatBssid(s) { - s = s.replace(//g, '').match(/.{1,2}/g); + s = s.replace(//g, '').match(/.{1,2}/g) || []; return s.join(':'); }