docs: clean upload documentation

This commit is contained in:
Tom Boullay
2026-05-12 23:48:47 +02:00
parent 498765db61
commit 101af23418
6 changed files with 11 additions and 17 deletions
+1 -2
View File
@@ -1,8 +1,7 @@
import { basename } from 'path'
/**
* Sanitize a filename: strip path components, replace special chars,
* collapse underscores, lowercase.
* Normalize uploaded filenames before storing them or writing Git paths.
*/
export function sanitizeFilename(name: string): string {
return basename(name)