quote

tcmts.vscode.extension.quote · #g6xkj6wh · term · runs anywhere

export const quote = (s: string) => (/^[\w./:@=+-]+$/.test(s) ? s : `'${s.replaceAll("'", "'\\''")}'`)

used by