diff --git a/src/utils.js b/src/utils.js index 3a7f7bb8..11ef8adf 100644 --- a/src/utils.js +++ b/src/utils.js @@ -135,7 +135,9 @@ function getFileName(filePath) function getFileNameWithoutExtension(filePath) { - return getFileName(filePath).split(".")[0]; + const filename = getFileName(filePath); + const index = filename.lastIndexOf("."); + return filename.slice(0, index); } function getContainingFolder(filePath)