fix: hash tag cannot be used as part of url

This commit is contained in:
Methapon2001 2023-12-01 14:29:41 +07:00
parent dd80764a99
commit 82228da8fa
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
3 changed files with 13 additions and 13 deletions

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);
}
/**