refactor: circular deps part 9

This commit is contained in:
Nathan Walker
2025-07-09 08:33:52 -07:00
parent 50cfd6fb25
commit d8681cbebd
17 changed files with 65 additions and 58 deletions

View File

@ -101,20 +101,6 @@ export function isDataURI(uri: string): boolean {
return firstSegment && firstSegment.indexOf('data:') === 0 && firstSegment.indexOf('base64') >= 0;
}
/**
* Get file extension from file path
* @param path file path
* @returns file extension
*/
export function getFileExtension(path: string): string {
const dotIndex = path.lastIndexOf('.');
if (dotIndex && dotIndex >= 0 && dotIndex < path.length) {
return path.substring(dotIndex);
}
return '';
}
export function mergeSort(arr, compareFunc) {
if (arr.length < 2) {
return arr;
@ -292,3 +278,5 @@ export function getDurationWithDampingFromSpring(springSettings?: { tension?: nu
damping,
};
}
export { getFileExtension } from './utils-shared';