(raw: string)
| 1 | export function escapeShellString(raw: string): string { |
| 2 | return raw |
| 3 | .replace(/\\/g, '\\\\') |
| 4 | .replace(/"/g, '\\"') |
| 5 | .replace(/\$/g, '\\$') |
| 6 | .replace(/`/g, '\\`') |
| 7 | .replace(/\n/g, '\\n'); |
| 8 | } |
no outgoing calls
no test coverage detected