Fix regex port attributes over applying

This commit is contained in:
Alex Ross
2021-03-10 14:47:35 +01:00
parent 278a41c349
commit afe0e2b9a7

View File

@@ -220,7 +220,7 @@ export class PortsAttributes extends Disposable {
} else if (this.hasStartEnd(value.key)) {
return port >= value.key.start && port <= value.key.end;
} else {
return commandLine ? value.key.test(commandLine) : -1;
return commandLine ? value.key.test(commandLine) : false;
}
});
return foundIndex >= 0 ? foundIndex + fromIndex : -1;