perf(main): short-circuit runtime command matching
This commit is contained in:
parent
c85b0d94ce
commit
47cea728b0
1 changed files with 1 additions and 0 deletions
|
|
@ -168,6 +168,7 @@ export function commandArgEquals(
|
|||
const normalizedExpected = expected?.trim();
|
||||
if (!normalizedExpected) return false;
|
||||
if (!command.includes(argName)) return false;
|
||||
if (!command.includes(normalizedExpected)) return false;
|
||||
const cached = getCachedCliArgEquals(command, argName, normalizedExpected);
|
||||
if (cached !== undefined) {
|
||||
return cached;
|
||||
|
|
|
|||
Loading…
Reference in a new issue