MCPcopy Index your code
hub / github.com/Effect-TS/effect / escape

Function escape

packages/cli/src/internal/options.ts:2042–2052  ·  view source on GitHub ↗
(string: string)

Source from the content-addressed store, hash-verified

2040// =============================================================================
2041
2042const escape = (string: string): string =>
2043 string
2044 .replaceAll("\\", "\\\\")
2045 .replaceAll("'", "'\\''")
2046 .replaceAll("[", "\\[")
2047 .replaceAll("]", "\\]")
2048 .replaceAll(":", "\\:")
2049 .replaceAll("$", "\\$")
2050 .replaceAll("`", "\\`")
2051 .replaceAll("(", "\\(")
2052 .replaceAll(")", "\\)")
2053
2054const getShortDescription = (self: Instruction): string => {
2055 switch (self._tag) {

Callers 1

getZshCompletionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected