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