services() extended matching service names

This commit is contained in:
Sebastian Hildebrandt
2025-06-16 18:04:00 +02:00
parent d720c03f4f
commit 273c8fb097
4 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -219,7 +219,7 @@ function services(srv, callback) {
} else {
ps = lines.filter(function (e) {
return (e.toLowerCase().indexOf(' ' + srv.toLowerCase() + ':') !== -1) || (e.toLowerCase().indexOf('/' + srv.toLowerCase()) !== -1);
return (e.toLowerCase().indexOf(' ' + srv.toLowerCase() + ':') !== -1) || (e.toLowerCase().indexOf('(' + srv.toLowerCase() + ' ') !== -1) || (e.toLowerCase().indexOf('(' + srv.toLowerCase() + ')') !== -1) || (e.toLowerCase().indexOf(' ' + srv.toLowerCase().replace(/[0-9.]/g, '') + ':') !== -1) || (e.toLowerCase().indexOf('/' + srv.toLowerCase()) !== -1);
});
}
const pids = [];