|
|
@@ -1610,7 +1610,7 @@ export function handelize(path: string): string {
|
|
|
const nameWithoutExt = ext ? segment.slice(0, -ext.length) : segment;
|
|
|
|
|
|
const cleanedName = nameWithoutExt
|
|
|
- .replace(/[^\p{L}\p{N}$]+/gu, '-') // Keep route marker "$", dash-separate other chars
|
|
|
+ .replace(/[^\p{L}\p{N}.$]+/gu, '-') // Keep letters, numbers, dots, "$"; dash-separate rest
|
|
|
.replace(/^-+|-+$/g, ''); // Remove leading/trailing dashes
|
|
|
|
|
|
return cleanedName + ext;
|