1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00

Merge pull request #639 from dark64/develop

Fix extension slicing
This commit is contained in:
Thibaut Schaeffer 2020-07-16 12:09:57 +02:00 committed by GitHub
commit 3e55d622dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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');
}