Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
noc
noc
Commits
0c94ac3b
Commit
0c94ac3b
authored
Aug 20, 2019
by
Dmitry Lukhtionov
Browse files
Fix
parent
f665e00e
Pipeline
#15424
passed with stages
in 11 minutes and 10 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
core/matcher.py
View file @
0c94ac3b
...
...
@@ -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
):
...
...
Andrey Vertiprahov
@aversant
mentioned in commit
12987ed4
·
Sep 01, 2019
mentioned in commit
12987ed4
mentioned in commit 12987ed4ad2aea9835f786710fc0b2a7d554e83b
Toggle commit list
Andrey Vertiprahov
@aversant
mentioned in merge request
!2556 (merged)
·
Sep 01, 2019
mentioned in merge request
!2556 (merged)
mentioned in merge request !2556
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment