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

Function match_wildcard

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

Source from the content-addressed store, hash-verified

257
258
259def match_wildcard(value, criteria_pattern):
260 if criteria_pattern is None:
261 return False
262
263 value, criteria_pattern = ensure_operators_are_strings(value, criteria_pattern)
264 return fnmatch.fnmatch(value, criteria_pattern)
265
266
267def match_regex(value, criteria_pattern):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected