9 lines
311 B
TypeScript
9 lines
311 B
TypeScript
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; |