(name: string)
| 6 | |
| 7 | /** Sanitize a user-provided name into a valid filename slug */ |
| 8 | export function slugify(name: string): string { |
| 9 | return name |
| 10 | .toLowerCase() |
| 11 | .replace(/[^a-z0-9]+/g, '-') |
| 12 | .replace(/^-|-$/g, ''); |
| 13 | } |
| 14 | |
| 15 | const ADJECTIVES = [ |
| 16 | 'brave', |
no outgoing calls
no test coverage detected
searching dependent graphs…