Commit 0c94ac3b authored by Dmitry Lukhtionov's avatar Dmitry Lukhtionov
Browse files

Fix

parent f665e00e
Pipeline #15424 passed with stages
in 11 minutes and 10 seconds
......@@ -37,6 +37,8 @@ def match(ctx, expr):
return False
if isinstance(expr[x], dict):
for m in expr[x]:
if ctx[x] is None:
continue
mf = matchers.get(m)
if mf and not isinstance(expr[x][m], tuple):
if not mf(ctx[x], expr[x][m]):
......@@ -53,7 +55,7 @@ def match(ctx, expr):
def match_regex(v, rx):
return bool(re.search(rx, v or ""))
return bool(re.search(rx, v))
def match_in(v, iter):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment