diff --git a/src/utils/export/index.ts b/src/utils/export/index.ts index 7960c7fa2..5c73c6664 100644 --- a/src/utils/export/index.ts +++ b/src/utils/export/index.ts @@ -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 @@ -115,3 +111,7 @@ export const getUniqueFileSaveName = ( } return fileSaveName; }; + +export const sanitizeName = (name: string) => { + return name.replaceAll('/', '_').replaceAll(' ', '_'); +};