Describe the bug
The Condition Agentflow node offers a "Regex" operation in the frontend dropdown, but this operation is not handled in the backend's compareOperationFunctions map. This causes a runtime error when using the Regex operation.
Error
compareOperationFunctions[operation] is not a function
Root Cause
In [packages/components/nodes/agentflow/Condition/Condition.ts]
- Line 101-102: The
regex option is defined in the frontend options
- Lines 265-280: The
compareOperationFunctions object does NOT include a regex handler
To Reproduce
- Create an Agentflow with a Condition node
- Add a condition with Type: String
- Select Operation: "Regex"
- Set Value 1 to any string variable
- Set Value 2 to a regex pattern
- Run the flow
- Observe the error: compareOperationFunctions[operation] is not a function
Expected behavior
The Regex operation should match Value 1 against the regex pattern in Value 2.
Screenshots
No response
Flow
No response
Use Method
None
Flowise Version
No response
Operating System
None
Browser
None
Additional context
No response
Describe the bug
The Condition Agentflow node offers a "Regex" operation in the frontend dropdown, but this operation is not handled in the backend's
compareOperationFunctionsmap. This causes a runtime error when using the Regex operation.Error
compareOperationFunctions[operation] is not a functionRoot Cause
In [packages/components/nodes/agentflow/Condition/Condition.ts]
regexoption is defined in the frontend optionscompareOperationFunctionsobject does NOT include aregexhandlerTo Reproduce
Expected behavior
The Regex operation should match Value 1 against the regex pattern in Value 2.
Screenshots
No response
Flow
No response
Use Method
None
Flowise Version
No response
Operating System
None
Browser
None
Additional context
No response