From e6b47a7a1de08c6c4f8e997c0642d6176c8abefd Mon Sep 17 00:00:00 2001 From: Eric Shinn Date: Fri, 9 Jun 2017 14:58:32 -0400 Subject: [PATCH] Remove .js ext requirement --- lib/plato.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plato.js b/lib/plato.js index 59ec8a63..e4d8e7a8 100644 --- a/lib/plato.js +++ b/lib/plato.js @@ -95,7 +95,7 @@ exports.inspect = function(files, outputDir, options, done) { return path.join(file,innerFile); }); runReports(files); - } else if (file.match(/\.js$/)) { + } else if (file.match(/(\.js)?$/)) { log.info('Reading "%s"', file); var fileShort = file.replace(commonBasePath, '');