diff --git a/README.md b/README.md index eaabb3f..ebceca7 100644 --- a/README.md +++ b/README.md @@ -229,6 +229,7 @@ I am happy to discuss any comments and suggestions. Please feel free to contact | Version | Date | Comment | | -------------- | -------------- | -------- | +| 2.0.4 | 2016-02-22 | tiny correction - removed double quotes CPU brand, ... | | 2.0.3 | 2016-02-22 | optimized cpuCurrentspeed | | 2.0.2 | 2016-02-22 | added CoreOS identification | | 2.0.1 | 2016-01-07 | minor patch | diff --git a/lib/index.js b/lib/index.js index 1c88eeb..167f81c 100644 --- a/lib/index.js +++ b/lib/index.js @@ -67,7 +67,8 @@ // -------------------------------- // // version date comment -// 2.0.2 2016-02-22 optimized cpuCurrentspeed +// 2.0.4 2016-02-22 tiny correction - removed double quotes CPU brand, ... +// 2.0.3 2016-02-22 optimized cpuCurrentspeed // 2.0.2 2016-02-22 added CoreOS identification // 2.0.1 2016-01-07 minor patch // 2.0.0 2016-01-07 new major version 2.0 @@ -315,10 +316,10 @@ function osInfo(callback) { release[line.split('=')[0].trim().toUpperCase()] = line.split('=')[1].trim(); } }); - result.distro = release.DISTRIB_ID || release.NAME || 'unknown'; + result.distro = (release.DISTRIB_ID || release.NAME || 'unknown').replace(/"/g, ''); result.logofile = getLogoFile(result.distro); - result.release = release.DISTRIB_RELEASE || release.VERSION_ID || 'unknown'; - result.codename = release.DISTRIB_CODENAME || ''; + result.release = (release.DISTRIB_RELEASE || release.VERSION_ID || 'unknown').replace(/"/g, ''); + result.codename = (release.DISTRIB_CODENAME || '').replace(/"/g, ''); } callback(result); })