diff --git a/lib/index.js b/lib/index.js index f7b4c37c..5d8dd38a 100644 --- a/lib/index.js +++ b/lib/index.js @@ -20,7 +20,7 @@ function parseApiFile(file) { var jsDocRegex = /\/\*\*([\s\S]*?)\*\//gm; var fileContent = fs.readFileSync(file, { encoding: 'utf8' }); - var ext = path.parse(file).ext; + var ext = path.extname(file); var yaml = []; var jsDocComments = [];