1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00

fix extension slicing

This commit is contained in:
dark64 2020-07-16 11:54:00 +02:00
parent 875543ea28
commit 81b81e4d10

View file

@ -20,7 +20,7 @@ const getAbsolutePath = (basePath, relativePath) => {
const getImportPath = (currentLocation, importLocation) => {
let path = getAbsolutePath(currentLocation, importLocation);
const extension = importLocation.slice((path.lastIndexOf(".") - 1 >>> 0) + 2);
const extension = path.slice((path.lastIndexOf(".") - 1 >>> 0) + 2);
return extension ? path : path.concat('.zok');
}