(str: unknown)
| 296 | * - trims whitespace |
| 297 | */ |
| 298 | export 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 | |
| 304 | const mimeTypes: { [key: string]: string } = { |
| 305 | ".aac": "audio/x-aac", |
no outgoing calls
no test coverage detected