Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored Aug 30, 2019
1 parent 3ba9cf2 commit 1b82b75
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ const staticify = (root, options) => {
const re = new RegExp(`^[0-9a-f]{${HASH_LEN}}$`, 'i');
const reResult = re.exec(fileNameHash);

if (fileNameParts.length >= 3 &&
fileNameHash.length === HASH_LEN &&
if (fileNameParts.length >= 3 && fileNameHash.length === HASH_LEN &&
(reResult && reResult[0] === fileNameHash)
) {
const stripped = fileNameParts.slice(0, fileNameParts.length - 2);
Expand Down

0 comments on commit 1b82b75

Please sign in to comment.