Skip to content

Commit

Permalink
Merge pull request #11 from trendfischer/master
Browse files Browse the repository at this point in the history
Removed filename restriction for "*.js"
  • Loading branch information
chdanielmueller committed Nov 25, 2015
2 parents afe96f0 + b1695c0 commit c03d38f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

// Dependencies
var fs = require('fs');
var path = require('path');
var doctrine = require('doctrine');
var jsYaml = require('js-yaml');
var parser = require('swagger-parser');
Expand All @@ -18,12 +17,6 @@ var parser = require('swagger-parser');
* @requires doctrine
*/
function parseApiFile(file) {
var fileExtension = path.extname(file);

/* istanbul ignore if */
if (fileExtension !== '.js') {
throw new Error('Unsupported extension \'' + fileExtension + '\'.');
}

var jsDocRegex = /\/\*\*([\s\S]*?)\*\//gm;
var fileContent = fs.readFileSync(file, { encoding: 'utf8' });
Expand Down

0 comments on commit c03d38f

Please sign in to comment.