feat: add utils lib

This commit is contained in:
2026-06-18 21:34:57 -03:00
parent 134b13c9b7
commit 7b08860b4e
2 changed files with 11 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
export const getFileName = (iconFilePath: string): string => {
const base = iconFilePath.split('/').pop() ?? '';
return base.split('.')[0];
};
export const cleanFolderName = (name: string): string =>
name.replace(/[\\/:*?"<>|]/g, '_');
export const isKiller = (idx: number): boolean => idx >= 268435456;