Skip to content

Commit

Permalink
Merge pull request #173 from KhronosGroup/bug-filenames
Browse files Browse the repository at this point in the history
Allow dots in filenames.
  • Loading branch information
Benjamin Schmithüsen authored Jan 28, 2019
2 parents d02fe91 + 3c67134 commit fc075b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fc075b8

Please sign in to comment.