MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / removeOuterQuotes

Function removeOuterQuotes

src/utils/imagePaste.ts:286–294  ·  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

284 * @returns Text without outer quotes
285 */
286function removeOuterQuotes(text: string): string {
287 if (
288 (text.startsWith('"') && text.endsWith('"')) ||
289 (text.startsWith("'") && text.endsWith("'"))
290 ) {
291 return text.slice(1, -1)
292 }
293 return text
294}
295
296/**
297 * 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