MCPcopy Create free account
hub / github.com/github/gh-aw / containsLogicalOperators

Function containsLogicalOperators

pkg/workflow/expression_syntax_validation.go:234–236  ·  view source on GitHub ↗

containsLogicalOperators checks if an expression contains logical operators (&&, ||, !). Note: '!=' also matches '!' — this is acceptable since the expression parser handles it.

(expr string)

Source from the content-addressed store, hash-verified

232// containsLogicalOperators checks if an expression contains logical operators (&&, ||, !).
233// Note: '!=' also matches '!' — this is acceptable since the expression parser handles it.
234func containsLogicalOperators(expr string) bool {
235 return strings.Contains(expr, "&&") || strings.Contains(expr, "||") || strings.Contains(expr, "!")
236}

Callers 2

Calls

no outgoing calls

Tested by 1