Skip to content

Commit ec1de9c

Browse files
committed
Removed filename restriction for "*.js"
1 parent afe96f0 commit ec1de9c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/index.js

-6
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ var parser = require('swagger-parser');
1818
* @requires doctrine
1919
*/
2020
function parseApiFile(file) {
21-
var fileExtension = path.extname(file);
22-
23-
/* istanbul ignore if */
24-
if (fileExtension !== '.js') {
25-
throw new Error('Unsupported extension \'' + fileExtension + '\'.');
26-
}
2721

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

0 commit comments

Comments
 (0)