From 9696dbe1688dcf9641875ea7a4fab50c5776017b Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 6 Apr 2025 17:39:06 -0300 Subject: find: pass thingConstructors into include() Allow include() to conveniently replicate the same behavior that it does by default, e.g. if [Thing.findThisThingOnly] has been expressly disabled. --- src/data/checks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/data') diff --git a/src/data/checks.js b/src/data/checks.js index a70f7d06..44f640a6 100644 --- a/src/data/checks.js +++ b/src/data/checks.js @@ -50,7 +50,7 @@ export function reportDirectoryErrors(wikiData, { if (!thingData) continue; for (const thing of thingData) { - if (findSpec.include && !findSpec.include(thing)) { + if (findSpec.include && !findSpec.include(thing, thingConstructors)) { continue; } -- cgit 1.3.0-6-gf8a5