services() bugfix not finding services with capital letters

This commit is contained in:
Sebastian Hildebrandt
2018-07-05 19:25:35 +02:00
parent 84a22e4cdf
commit c877d97c2e
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ function services(srv, callback) {
let lines = stdout.toString().replace(/ +/g, ' ').replace(/,+/g, '.').split('\n');
srvs.forEach(function (srv) {
let ps = lines.filter(function (e) {
return e.indexOf(srv) !== -1;
return ((e + ' ').toLowerCase().indexOf(' ' + srv + ' ') !== -1) || (e.toLowerCase().indexOf(' ' + srv + ':') !== -1);
});
data.push({
'name': srv,