From 9ec422a57b1f903d26ef3813f18c10157ecf27f1 Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Thu, 23 Apr 2026 17:41:24 -0500 Subject: [PATCH] ignore case --- .../BotSharp.Core.Rules/Engines/RuleEngine.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Infrastructure/BotSharp.Core.Rules/Engines/RuleEngine.cs b/src/Infrastructure/BotSharp.Core.Rules/Engines/RuleEngine.cs index 1491dce61..9c1808927 100644 --- a/src/Infrastructure/BotSharp.Core.Rules/Engines/RuleEngine.cs +++ b/src/Infrastructure/BotSharp.Core.Rules/Engines/RuleEngine.cs @@ -225,7 +225,7 @@ private async Task ExecuteGraphNodeDfs( JsonOptions = options?.JsonOptions }; - if (RuleConstant.CONDITION_NODE_TYPES.Contains(nextNode.Type)) + if (RuleConstant.CONDITION_NODE_TYPES.Contains(nextNode.Type, StringComparer.OrdinalIgnoreCase)) { // Execute condition node var conditionResult = await ExecuteCondition(nextNode, edge, graph, agent, trigger, context); @@ -252,7 +252,7 @@ private async Task ExecuteGraphNodeDfs( nextNode.Name, agent.Name, trigger.Name); } } - else if (RuleConstant.ACTION_NODE_TYPES.Contains(nextNode.Type)) + else if (RuleConstant.ACTION_NODE_TYPES.Contains(nextNode.Type, StringComparer.OrdinalIgnoreCase)) { // Execute action node var actionResult = await ExecuteAction(nextNode, edge, graph, agent, trigger, context); @@ -334,7 +334,7 @@ private async Task ExecuteGraphNodeBfs( JsonOptions = options?.JsonOptions }; - if (RuleConstant.CONDITION_NODE_TYPES.Contains(nextNode.Type)) + if (RuleConstant.CONDITION_NODE_TYPES.Contains(nextNode.Type, StringComparer.OrdinalIgnoreCase)) { // Execute condition node var conditionResult = await ExecuteCondition(nextNode, nextEdge, graph, agent, trigger, context); @@ -366,7 +366,7 @@ private async Task ExecuteGraphNodeBfs( nextNode.Name, agent.Name, trigger.Name); } } - else if (RuleConstant.ACTION_NODE_TYPES.Contains(nextNode.Type)) + else if (RuleConstant.ACTION_NODE_TYPES.Contains(nextNode.Type, StringComparer.OrdinalIgnoreCase)) { // Execute action node var actionResult = await ExecuteAction(nextNode, nextEdge, graph, agent, trigger, context);