| 5.9.0 |
2021-09-15 |
diff --git a/docs/index.html b/docs/index.html
index 8e3ed67..5c047ea 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -170,7 +170,7 @@
systeminformation
- New Version: 5.9.0
+ New Version: 5.9.1
diff --git a/lib/filesystem.js b/lib/filesystem.js
index 276ae77..bb772db 100755
--- a/lib/filesystem.js
+++ b/lib/filesystem.js
@@ -989,7 +989,7 @@ function diskLayout(callback) {
if (sizeStr) {
let sizeValue = 0;
if (sizeStr.indexOf('(') >= 0) {
- sizeValue = parseInt(sizeStr.match(/\(([^)]+)\)/)[1].replace(/\./g, '').replace(/,/g, '').replace(/ /g, ''));
+ sizeValue = parseInt(sizeStr.match(/\(([^)]+)\)/)[1].replace(/\./g, '').replace(/,/g, '').replace(/\s/g, ''));
}
if (!sizeValue) {
sizeValue = parseInt(sizeStr);
@@ -1037,7 +1037,7 @@ function diskLayout(callback) {
if (sizeStr) {
let sizeValue = 0;
if (sizeStr.indexOf('(') >= 0) {
- sizeValue = parseInt(sizeStr.match(/\(([^)]+)\)/)[1].replace(/\./g, '').replace(/,/g, '').replace(/ /g, ''));
+ sizeValue = parseInt(sizeStr.match(/\(([^)]+)\)/)[1].replace(/\./g, '').replace(/,/g, '').replace(/\s/g, ''));
}
if (!sizeValue) {
sizeValue = parseInt(sizeStr);
@@ -1082,7 +1082,7 @@ function diskLayout(callback) {
if (sizeStr) {
let sizeValue = 0;
if (sizeStr.indexOf('(') >= 0) {
- sizeValue = parseInt(sizeStr.match(/\(([^)]+)\)/)[1].replace(/\./g, '').replace(/,/g, '').replace(/ /g, ''));
+ sizeValue = parseInt(sizeStr.match(/\(([^)]+)\)/)[1].replace(/\./g, '').replace(/,/g, '').replace(/\s/g, ''));
}
if (!sizeValue) {
sizeValue = parseInt(sizeStr);