refactor: dedupe extension lowercase helpers

This commit is contained in:
Peter Steinberger
2026-04-07 14:56:14 +01:00
parent 948d139399
commit 9314bb7180
28 changed files with 72 additions and 48 deletions

View File

@@ -77,7 +77,7 @@ function parseExecDirectiveArgs(raw: string): Omit<
if (idx === -1) {
return null;
}
const key = token.slice(0, idx).trim().toLowerCase();
const key = normalizeOptionalLowercaseString(token.slice(0, idx));
const value = token.slice(idx + 1).trim();
if (!key) {
return null;