Skip to content

Commit

Permalink
fix 404
Browse files Browse the repository at this point in the history
  • Loading branch information
LtSquigs committed May 13, 2015
1 parent c63943d commit e0ae0f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ module.exports.generator = function (config, options, logger, fileParser) {
filename = 'index';
}

if(filename.indexOf('.raw') === (filename.length - 4) && extension === '.html') {
if(filename.indexOf('.raw') !== -1 && filename.indexOf('.raw') === (filename.length - 4) && extension === '.html') {
filename = filename.slice(0, filename.length - 4);
}

Expand Down

0 comments on commit e0ae0f9

Please # to comment.