fix: make search usable again
This commit is contained in:
@@ -17,7 +17,7 @@ export function safeFileName(input: string): string {
|
||||
.normalize("NFKD")
|
||||
.replace(/[\u0300-\u036f]/g, "")
|
||||
.replace(/[\s-]+/g, "_")
|
||||
.replace(/[^A-Za-z0-9._]+/g, "")
|
||||
.replace(/[^A-Za-z0-9_]+/g, "")
|
||||
.replace(/_+/g, "_")
|
||||
// Trim underscores/dots from ends and prevent leading dots
|
||||
.replace(/^[_\.]+|[_\.]+$/g, "").replace(/^\.+/, "")
|
||||
|
||||
Reference in New Issue
Block a user