Update apply-config.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
63bf8771be
commit
8d2ed24e5f
@ -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}"`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user