MCPcopy Create free account
hub / github.com/anomalyco/opencode / escapeTemplate

Function escapeTemplate

packages/core/script/migration.ts:171–173  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

169}
170
171function escapeTemplate(line: string) {
172 return line.replaceAll("\\", "\\\\").replaceAll("`", "\\`").replaceAll("${", "\\${")
173}
174
175async function formatTypescript(input: string) {
176 const prettier = await import("prettier")

Callers 1

renderRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected