diff --git a/lib/parser/contents/README.md b/lib/parser/contents/README.md index 3993b368..875b29fe 100644 --- a/lib/parser/contents/README.md +++ b/lib/parser/contents/README.md @@ -7,13 +7,12 @@ This will eventually replace the old parser. ## Methods -#### parse(data: object, ctx?: any) +#### parse(data: object) Responsible for parsing specifically the `contents` property of the response object. ##### Arguments * `data` - the `contents` property. - * `ctx` - optional, can be used to give additional context to the parser. #### parseResponse(data: object) diff --git a/lib/parser/contents/index.js b/lib/parser/contents/index.js index e8a78de3..bb6bfad3 100644 --- a/lib/parser/contents/index.js +++ b/lib/parser/contents/index.js @@ -106,7 +106,7 @@ class Parser { const keys = Object.keys(item); const classname = this.sanitizeClassName(keys[0]); - if (this.shouldIgnore(classname)) { + if (!this.shouldIgnore(classname)) { try { const TargetClass = require('./classes/' + classname); results.push(new TargetClass(item[keys[0]]));