fix: trim whitespaces
This commit is contained in:
parent
af13b7a9eb
commit
641d46dde2
1 changed files with 1 additions and 1 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).trim();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue