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

Function endswith

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

Source from the content-addressed store, hash-verified

229
230
231def endswith(value, criteria_pattern):
232 if criteria_pattern is None:
233 return False
234
235 value, criteria_pattern = ensure_operators_are_strings(value, criteria_pattern)
236 return value.endswith(criteria_pattern)
237
238
239def iendswith(value, criteria_pattern):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected