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

Function incontains

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

Source from the content-addressed store, hash-verified

205
206
207def incontains(value, criteria_pattern):
208 if criteria_pattern is None:
209 return False
210
211 value, criteria_pattern = ensure_operators_are_strings(value, criteria_pattern)
212 return criteria_pattern.lower() not in value.lower()
213
214
215def startswith(value, criteria_pattern):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected