mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
refactor(core): zero circulars + esm ready (#10770)
This commit is contained in:
7
packages/core/utils/utils-shared.ts
Normal file
7
packages/core/utils/utils-shared.ts
Normal file
@ -0,0 +1,7 @@
|
||||
export function getFileExtension(path: string): string {
|
||||
if (!path) {
|
||||
return '';
|
||||
}
|
||||
const index = path.lastIndexOf('.');
|
||||
return index !== -1 ? path.substring(index + 1) : '';
|
||||
}
|
||||
Reference in New Issue
Block a user