MCPcopy Index your code
hub / github.com/codeaashu/claude-code / removeOuterQuotes

Function removeOuterQuotes

src/utils/imagePaste.ts:277–285  ·  view source on GitHub ↗

* Remove outer single or double quotes from a string * @param text Text to clean * @returns Text without outer quotes

(text: string)

Source from the content-addressed store, hash-verified

275 * @returns Text without outer quotes
276 */
277function removeOuterQuotes(text: string): string {
278 if (
279 (text.startsWith('"') && text.endsWith('"')) ||
280 (text.startsWith("'") && text.endsWith("'"))
281 ) {
282 return text.slice(1, -1)
283 }
284 return text
285}
286
287/**
288 * Remove shell escape backslashes from a path (for macOS/Linux/WSL)

Callers 2

isImageFilePathFunction · 0.85
asImageFilePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected