MCPcopy Create free account
hub / github.com/StackStorm/st2 / contains

Function contains

st2common/st2common/operators.py:183–188  ·  view source on GitHub ↗
(value, criteria_pattern)

Source from the content-addressed store, hash-verified

181
182
183def contains(value, criteria_pattern):
184 if criteria_pattern is None:
185 return False
186
187 value, criteria_pattern = ensure_operators_are_strings(value, criteria_pattern)
188 return criteria_pattern in value
189
190
191def icontains(value, criteria_pattern):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected