Skip to content

Commit

Permalink
Put hash right before the last file extension (#245)
Browse files Browse the repository at this point in the history
Fixes #244
  • Loading branch information
phazei authored and sindresorhus committed Oct 16, 2018
1 parent 2f773fd commit de0537f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function transformFilename(file) {
file.revHash = revHash(file.contents);

file.path = modifyFilename(file.path, (filename, extension) => {
const extIndex = filename.indexOf('.');
const extIndex = filename.lastIndexOf('.');

filename = extIndex === -1 ?
revPath(filename, file.revHash) :
Expand Down

0 comments on commit de0537f

Please sign in to comment.