(str: string)
| 10 | |
| 11 | // Don't let anyone sneak shell commands through app names :) |
| 12 | export function escapeShellString(str: string): string { |
| 13 | return str |
| 14 | .replace(/\\/g, '\\\\') // Escape backslashes first |
| 15 | .replace(/"/g, '\\"') // Escape double quotes |
| 16 | .replace(/\$/g, '\\$') // Escape dollar signs |
| 17 | .replace(/`/g, '\\`') // Escape backticks |
| 18 | .replace(/!/g, '\\!'); // Escape history expansion |
| 19 | } |
| 20 | |
| 21 | export function getSelectedPackages(selectedAppIds: Set<string>, distroId: DistroId): PackageInfo[] { |
| 22 | return Array.from(selectedAppIds) |
no outgoing calls
no test coverage detected