Files
um-react/src/util/pathHelper.ts
T

4 lines
84 B
TypeScript

export function getFileName(path: string) {
return path.replace(/.*[\\/]/, '');
}