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

Function istartswith

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

Source from the content-addressed store, hash-verified

221
222
223def istartswith(value, criteria_pattern):
224 if criteria_pattern is None:
225 return False
226
227 value, criteria_pattern = ensure_operators_are_strings(value, criteria_pattern)
228 return value.lower().startswith(criteria_pattern.lower())
229
230
231def endswith(value, criteria_pattern):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected