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

Function startswith

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

Source from the content-addressed store, hash-verified

213
214
215def startswith(value, criteria_pattern):
216 if criteria_pattern is None:
217 return False
218
219 value, criteria_pattern = ensure_operators_are_strings(value, criteria_pattern)
220 return value.startswith(criteria_pattern)
221
222
223def istartswith(value, criteria_pattern):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected