Merge branch 'methapon' into development

This commit is contained in:
Methapon2001 2023-12-07 10:58:30 +07:00
commit 369201b2db
No known key found for this signature in database
GPG key ID: 849924FEF46BD132

View file

@ -9,7 +9,7 @@ import minioClient from "../minio";
* @returns illegal character replaced path
*/
export function replaceIllegalChars(path: string, replace = "-") {
return path.replace(/[/\\?%*:|"<>#]/g, replace);
return path.replace(/[/\\?%*:|"<>#]/g, replace).trim();
}
/**