(s: string)
| 54 | ]; |
| 55 | |
| 56 | function pascal(s: string): string { |
| 57 | return s |
| 58 | .split(/[^a-zA-Z0-9]+/) |
| 59 | .filter(Boolean) |
| 60 | .map((p) => p[0].toUpperCase() + p.slice(1)) |
| 61 | .join(''); |
| 62 | } |
| 63 | |
| 64 | function snakeUpper(s: string): string { |
| 65 | return s.replace(/[^a-zA-Z0-9]+/g, '_').toUpperCase(); |