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

Function iendswith

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

Source from the content-addressed store, hash-verified

237
238
239def iendswith(value, criteria_pattern):
240 if criteria_pattern is None:
241 return False
242
243 value, criteria_pattern = ensure_operators_are_strings(value, criteria_pattern)
244 return value.lower().endswith(criteria_pattern.lower())
245
246
247def less_than(value, criteria_pattern):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected