Merge branch 'methapon' into development
This commit is contained in:
commit
369201b2db
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