MCPcopy
hub / github.com/codeaashu/claude-code / applyCurlyDoubleQuotes

Function applyCurlyDoubleQuotes

src/tools/FileEditTool/utils.ts:156–171  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

154}
155
156function applyCurlyDoubleQuotes(str: string): string {
157 const chars = [...str]
158 const result: string[] = []
159 for (let i = 0; i < chars.length; i++) {
160 if (chars[i] === '"') {
161 result.push(
162 isOpeningContext(chars, i)
163 ? LEFT_DOUBLE_CURLY_QUOTE
164 : RIGHT_DOUBLE_CURLY_QUOTE,
165 )
166 } else {
167 result.push(chars[i]!)
168 }
169 }
170 return result.join('')
171}
172
173function applyCurlySingleQuotes(str: string): string {
174 const chars = [...str]

Callers 1

preserveQuoteStyleFunction · 0.85

Calls 2

isOpeningContextFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected