(name: string)
| 89 | const slugPattern = /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/; |
| 90 | |
| 91 | const slugify = (name: string): string => |
| 92 | name |
| 93 | .trim() |
| 94 | .toLowerCase() |
| 95 | .replace(/[^a-z0-9]+/g, "-") |
| 96 | .replace(/^-+|-+$/g, "") |
| 97 | .slice(0, 63); |
| 98 | |
| 99 | const normalizeSlugEffect = (input: { |
| 100 | readonly name: string; |
no test coverage detected