mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-12 06:01:25 +00:00
fix(config): handle $ character with {file:} pattern (#12390)
Co-authored-by: Hank Stoever <1109058+hstove@users.noreply.github.com>
This commit is contained in:
parent
154d0ebf53
commit
229cdafcc4
2 changed files with 20 additions and 1 deletions
|
|
@ -1267,7 +1267,7 @@ export namespace Config {
|
|||
})
|
||||
).trim()
|
||||
// escape newlines/quotes, strip outer quotes
|
||||
text = text.replace(match, JSON.stringify(fileContent).slice(1, -1))
|
||||
text = text.replace(match, () => JSON.stringify(fileContent).slice(1, -1))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue