processes() improved command parsing

This commit is contained in:
Sebastian Hildebrandt 2022-06-24 19:00:58 +02:00
parent fdcf9c707e
commit 28fa676df8

View File

@ -596,6 +596,7 @@ function processes(callback) {
} else { } else {
if (p4 > 0) { if (p4 > 0) {
command = fullcommand.split(' ')[0]; command = fullcommand.split(' ')[0];
command = command.replace(/:/g, '');
} else { } else {
// try to figure out where parameter starts // try to figure out where parameter starts
let firstParamPos = fullcommand.indexOf(' -'); let firstParamPos = fullcommand.indexOf(' -');