MCPcopy Index your code
hub / github.com/coder/code-server / sanitizeString

Function sanitizeString

src/node/util.ts:298–302  ·  view source on GitHub ↗
(str: unknown)

Source from the content-addressed store, hash-verified

296 * - trims whitespace
297 */
298export function sanitizeString(str: unknown): string {
299 // Very basic sanitization of string
300 // Credit: https://stackoverflow.com/a/46719000/3015595
301 return typeof str === "string" ? str.trim() : ""
302}
303
304const mimeTypes: { [key: string]: string } = {
305 ".aac": "audio/x-aac",

Callers 3

authenticatedFunction · 0.90
login.tsFile · 0.90
logout.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected