mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-04 08:48:55 +02:00
6 lines
166 B
JavaScript
6 lines
166 B
JavaScript
function sanitizeFileName(fileName) {
|
|
// Remove spaces and invalid characters
|
|
return fileName.replace(/[^a-zA-Z0-9._-]/g, "");
|
|
}
|
|
export default sanitizeFileName;
|