Skip to content

Commit

Permalink
use path.extname in favor of path.parse to stay compatible with node …
Browse files Browse the repository at this point in the history
…0.10.x
  • Loading branch information
mprokopowicz committed Mar 3, 2016
1 parent 0b7fe37 commit 78e7b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];

Expand Down

0 comments on commit 78e7b77

Please sign in to comment.