Update apply-config.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Steven Mosley 2025-09-21 16:01:49 -05:00 committed by GitHub
parent 63bf8771be
commit 8d2ed24e5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,7 @@ function parseConfigYamlContent(content) {
let value = trimmed.substring(colonIndex + 1).trim(); let value = trimmed.substring(colonIndex + 1).trim();
// Validate key format // Validate key format
if (!key || key.includes(" ") && !currentSection) { if (!key || key.includes(" ")) {
throw new Error(`Invalid key format on line ${lineNumber}: "${key}"`); throw new Error(`Invalid key format on line ${lineNumber}: "${key}"`);
} }