diff --git a/Prototype/server/src/utils/minio.ts b/Prototype/server/src/utils/minio.ts index b9c49b4..131ee1a 100644 --- a/Prototype/server/src/utils/minio.ts +++ b/Prototype/server/src/utils/minio.ts @@ -16,7 +16,7 @@ function safePath(path: string) { * @returns path with illegal character replaced with "-" */ export function replaceIllegalChars(path: string, replaceChar = "-") { - return path.replace(/[/\\?%*:|"<>]/g, "-"); + return path.replace(/[/\\?%*:|"<>]/g, replaceChar); } /**