Skip to content

Commit 04cf1a1

Browse files
authored
fix: typo in tree check
Fix typo and add missing RuleRace in isLogicRule
2 parents 27880cd + bf29135 commit 04cf1a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ export function isLogicRule(x: any): x is ILogicRule {
2929
(x.constructor.name === 'RuleOr' ||
3030
x.constructor.name === 'RuleAnd' ||
3131
x.constructor.name === 'RuleChain' ||
32-
x.constructor.name === 'RuleNoe' ||
32+
x.constructor.name === 'RuleRace' ||
33+
x.constructor.name === 'RuleNot' ||
3334
x.constructor.name === 'RuleTrue' ||
3435
x.constructor.name === 'RuleFalse'))
3536
)

0 commit comments

Comments
 (0)