Skip to content

Commit

Permalink
fix(gatsby-source-filesystem): allow regex and functions for ignore o…
Browse files Browse the repository at this point in the history
…ption

fixes #27848

Co-authored-by: Max Stoiber <contact@mxstbr.com>
  • Loading branch information
axe312ger and mxstbr authored Nov 6, 2020
1 parent 139a809 commit 253b1af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/gatsby-source-filesystem/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ exports.pluginOptionsSchema = ({ Joi }) =>
Joi.object({
name: Joi.string(),
path: Joi.string(),
ignore: Joi.array().items(Joi.string()),
ignore: Joi.array().items(
Joi.string(),
Joi.object().regex(),
Joi.function()
),
})

exports.sourceNodes = (api, pluginOptions) => {
Expand Down

0 comments on commit 253b1af

Please sign in to comment.