mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
refactor: circular deps part 15
This commit is contained in:
@ -1,6 +1,3 @@
|
||||
// Shared helpers and types for utils, used by both native-helper and common.
|
||||
// Only put platform-agnostic logic here.
|
||||
|
||||
export function getFileExtension(path: string): string {
|
||||
if (!path) {
|
||||
return '';
|
||||
@ -8,5 +5,3 @@ export function getFileExtension(path: string): string {
|
||||
const index = path.lastIndexOf('.');
|
||||
return index !== -1 ? path.substring(index + 1) : '';
|
||||
}
|
||||
|
||||
// Add more shared helpers/types/constants as needed.
|
||||
|
Reference in New Issue
Block a user