This commit is contained in:
Vanessa 2022-07-17 11:06:57 +08:00
parent 7ee9691a8c
commit b6b1ddd24d
3 changed files with 8 additions and 8 deletions

View file

@ -29,8 +29,8 @@ export const getDisplayName = (filePath: string, basename = true, removeSY = fal
};
export const getAssetName = (assetPath: string) => {
return assetPath.substring(7, assetPath.length - pathPosix().extname(assetPath).length - 23)
}
return assetPath.substring(7, assetPath.length - pathPosix().extname(assetPath).length - 23);
};
export const isLocalPath = (link: string) => {
if (!link) {