Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Commit

Permalink
fix(reader): using _.includes instead of Array.includes
Browse files Browse the repository at this point in the history
Array.includes is not supported by old versions of Node.js
  • Loading branch information
thetutlage committed Sep 18, 2016
1 parent fd90c63 commit 2c0b239
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Readers/FS/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

const fsExtra = require('fs-extra')
const path = require('path')
const _ = require('lodash')

class FS {

Expand All @@ -28,7 +29,7 @@ class FS {
* @private
*/
_grabMarkdownFile (file) {
if (file.stats.isFile() && this.docsExtension.includes(path.extname(file.path))) {
if (file.stats.isFile() && _.includes(this.docsExtension, path.extname(file.path))) {
this.docs.push({path: file.path, contents: fsExtra.readFileSync(file.path, 'utf-8')})
}
}
Expand Down

0 comments on commit 2c0b239

Please sign in to comment.