refactor code
This commit is contained in:
parent
6a482c937e
commit
f0787b7dfb
|
@ -97,10 +97,6 @@ export const getUniqueCollectionFolderPath = (
|
|||
return collectionFolderPath;
|
||||
};
|
||||
|
||||
export const sanitizeName = (name: string) => {
|
||||
return name.replaceAll('/', '_').replaceAll(' ', '_');
|
||||
};
|
||||
|
||||
export const getUniqueFileSaveName = (
|
||||
filename: string,
|
||||
usedFileNamesInCollection: Set<string>
|
||||
|
@ -115,3 +111,7 @@ export const getUniqueFileSaveName = (
|
|||
}
|
||||
return fileSaveName;
|
||||
};
|
||||
|
||||
export const sanitizeName = (name: string) => {
|
||||
return name.replaceAll('/', '_').replaceAll(' ', '_');
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue