mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
fix: md scalar
This commit is contained in:
@@ -54,11 +54,10 @@ export function fallbackSanitization(content: string): string {
|
||||
continue
|
||||
}
|
||||
|
||||
// if value contains a colon, convert to block scalar
|
||||
// if value contains a colon, quote it as a scalar
|
||||
if (value.includes(":")) {
|
||||
// kilocode_change start - preserve unquoted colon values as a block scalar
|
||||
result.push(`${key}: |`)
|
||||
result.push(` ${value}`)
|
||||
// kilocode_change start - preserve unquoted colon values as exact strings
|
||||
result.push(`${key}: "${value.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`)
|
||||
// kilocode_change end
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user