From e0ae0f9061fa1969463f2ef187fa6872c30037be Mon Sep 17 00:00:00 2001 From: Ian Kelly Date: Tue, 12 May 2015 22:55:57 -0700 Subject: [PATCH] fix 404 --- libs/generator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/generator.js b/libs/generator.js index 4ee5d40..c3e7b93 100644 --- a/libs/generator.js +++ b/libs/generator.js @@ -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); }