services() bugfix not finding services with capital letters
This commit is contained in:
parent
84a22e4cdf
commit
c877d97c2e
@ -100,6 +100,7 @@ Other changes
|
||||
|
||||
| Version | Date | Comment |
|
||||
| -------------- | -------------- | -------- |
|
||||
| 3.42.3 | 2018-07-05 | `services()` bugfix not finding services with capital letters |
|
||||
| 3.42.2 | 2018-07-03 | `users()` optimized results if lack of permissions |
|
||||
| 3.42.1 | 2018-07-03 | `versions()` bugfix git version macOS |
|
||||
| 3.42.0 | 2018-06-01 | `processes()` added parent process PID |
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user