um-react/src/util/pathHelper.ts

4 lines
84 B
TypeScript
Raw Normal View History

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