refactor(auto-reply): reuse exec directive clearer

This commit is contained in:
Peter Steinberger
2026-02-15 16:38:49 +00:00
parent 8da99247f1
commit 3a3bfa7f13
2 changed files with 22 additions and 18 deletions

View File

@@ -45,3 +45,23 @@ export function clearInlineDirectives(cleaned: string): InlineDirectives {
hasQueueOptions: false,
};
}
export function clearExecInlineDirectives(directives: InlineDirectives): InlineDirectives {
return {
...directives,
hasExecDirective: false,
execHost: undefined,
execSecurity: undefined,
execAsk: undefined,
execNode: undefined,
rawExecHost: undefined,
rawExecSecurity: undefined,
rawExecAsk: undefined,
rawExecNode: undefined,
hasExecOptions: false,
invalidExecHost: false,
invalidExecSecurity: false,
invalidExecAsk: false,
invalidExecNode: false,
};
}