From 914dcc5e2c0d220b53a1c156cd6a9cc9823c5e79 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Tue, 21 Nov 2023 10:13:27 +0700 Subject: [PATCH] fix: unused char --- Prototype/server/src/utils/minio.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /**