(str: string)
| 13 | } |
| 14 | |
| 15 | export function toPascalCase(str: string) { |
| 16 | return str.replace(/(^\w|-+\w|_+\w|\s+\w)/g, (match) => |
| 17 | match.replace(/[-_\s]+/, '').toUpperCase() |
| 18 | ) |
| 19 | } |
| 20 | |
| 21 | const ESCAPE_MAP: Record<string, string> = { |
| 22 | '&': '&', |
no outgoing calls
no test coverage detected