refactor: simplify pass (trekexecute)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kjell Tore Guttormsen 2026-10-29 00:18:29 +01:00
commit 7cb038cce3
Signed by: ktg
SSH key fingerprint: SHA256:JakMjO6FTBBzN0Bhfj9saOoEjaFxlSdYuZQQpM/lF9Q
2 changed files with 3 additions and 8 deletions

View file

@ -353,11 +353,7 @@ function argsShellOpeners(text) {
if (k !== second + 1) unreadable = true;
k = skip(k + 1);
}
while (k < n) {
if (text[k] === ' ' || text[k] === '\t') k += 1;
else if (text[k] === '\\' && text[k + 1] === '\n') k += 2;
else break;
}
while (text[k] === ' ' || text[k] === '\t') k = skip(k + 1);
const start = k;
let word = '';
let quoted = false;