MCPcopy Index your code
hub / github.com/coderoad/coderoad-vscode / wrapInQuotes

Function wrapInQuotes

src/services/webview/render.ts:123–123  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

121 // set CSP (content security policy) to grant permission to local files
122 // while blocking unexpected malicious network requests
123 const wrapInQuotes = (str: string) => `'${str}'`
124 const nonceString = nonces.map((nonce: string) => wrapInQuotes(`nonce-${nonce}`)).join(' ')
125 const hashString = hashes.map(wrapInQuotes).join(' ')
126

Callers 1

renderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected