fix: hash tag cannot be used as part of url
This commit is contained in:
parent
dd80764a99
commit
82228da8fa
3 changed files with 13 additions and 13 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue