docs: clean upload documentation
This commit is contained in:
+1
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user