(slug: string, index: number)
| 10 | } |
| 11 | |
| 12 | export function addIndex(slug: string, index: number): string { |
| 13 | return `${slug}-${index + 1}`; |
| 14 | } |
| 15 | |
| 16 | export function removeIndex(slug: string): string { |
| 17 | return slug.replace(/-\d+$/, ''); |
no outgoing calls
no test coverage detected