Skip to content

Commit

Permalink
Merge pull request #38 from Luxcium/patch-2
Browse files Browse the repository at this point in the history
Class constructor cannot be invoked without 'new'
  • Loading branch information
cpyarger authored Jan 23, 2021
2 parents f6f9e21 + 1f90c95 commit e781083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/comments.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require('fs');
const path = require('path');
const glob = require('glob');
const parseComments = require('parse-comments');
const ParseComments = require('parse-comments');
const config = require('./config.json');

/**
Expand All @@ -14,7 +14,7 @@ const parseFiles = files => {
let response = [];
files.forEach(file => {
const f = fs.readFileSync(file, 'utf8').toString();
response = response.concat(parseComments(f));
response = response.concat(new ParseComments(f));
});

return response;
Expand Down

0 comments on commit e781083

Please sign in to comment.