(value: string)
| 224 | } |
| 225 | |
| 226 | function slugify(value: string): string { |
| 227 | return value |
| 228 | .toLowerCase() |
| 229 | .replace(/[^a-z0-9]+/g, '-') |
| 230 | .replace(/^-+|-+$/g, '') |
| 231 | .replace(/--+/g, '-') |
| 232 | } |
| 233 | |
| 234 | function getProviderPrefixes(providerId: string): string[] { |
| 235 | return PROVIDER_PREFIXES[providerId] ?? [`${providerId}/`] |