(templateValue?: string)
| 28 | const LEGACY_TEMPLATE_ALIASES = new Set(['javascript', 'js', 'jsx']) |
| 29 | |
| 30 | function getLegacyTemplateValue(templateValue?: string) { |
| 31 | if (!templateValue) { |
| 32 | return undefined |
| 33 | } |
| 34 | |
| 35 | const normalized = templateValue.toLowerCase().trim() |
| 36 | if ( |
| 37 | SUPPORTED_LEGACY_TEMPLATES.has(normalized) || |
| 38 | LEGACY_TEMPLATE_ALIASES.has(normalized) |
| 39 | ) { |
| 40 | return normalized |
| 41 | } |
| 42 | |
| 43 | return undefined |
| 44 | } |
| 45 | |
| 46 | function slugifyStarterName(value: string) { |
| 47 | return value |
no outgoing calls
no test coverage detected