From 6bd62b37a56d9ff7d390f12439bbc94dd26afa5e Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Sat, 14 Sep 2024 09:47:14 +0200 Subject: [PATCH] test length as numeric --- src/get-prereqs.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/get-prereqs.mjs b/src/get-prereqs.mjs index 4b25fad..9933f6e 100644 --- a/src/get-prereqs.mjs +++ b/src/get-prereqs.mjs @@ -22,7 +22,7 @@ const filterPrereqs = ({ phases.has(prereq.phase) && relationships.has(prereq.relationship) && (!prereq.feature || features.includes(prereq.feature)) - && !excludes.filter(ex => ex.exec(prereq.prereq)).length, + && excludes.filter(ex => ex.exec(prereq.prereq)).length === 0, ); };