Skip to content

Commit

Permalink
Allow dots in filenames.
Browse files Browse the repository at this point in the history
  • Loading branch information
Don McCurdy committed Jan 25, 2019
1 parent c634970 commit 3c67134
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 3c67134

Please sign in to comment.