(value: string)
| 50 | } |
| 51 | |
| 52 | function toSlug(value: string): string { |
| 53 | const cleaned = value |
| 54 | .toLowerCase() |
| 55 | .replace(/[^a-z0-9]+/g, '-') |
| 56 | .replace(/^-+|-+$/g, ''); |
| 57 | return cleaned; |
| 58 | } |
| 59 | |
| 60 | function formatDatePrefix(date: Date = new Date()): string { |
| 61 | const month = String(date.getMonth() + 1).padStart(2, '0'); |