Skip to content

Commit 639cdba

Browse files
committed
fix KeywordNameMatch class
1 parent 7cc9747 commit 639cdba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

robotframework_reportportal/model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,8 @@ class KeywordNameMatch(KeywordEqual):
363363

364364
def __init__(self, pattern: Optional[str]) -> None:
365365
"""Initialize the matcher with the pattern."""
366-
super().__init__(lambda kw: match_pattern(pattern, kw.name))
366+
re_pattern = translate_glob_to_regex(pattern)
367+
super().__init__(lambda kw: match_pattern(re_pattern, kw.name))
367368

368369

369370
class KeywordTypeEqual(KeywordEqual):

0 commit comments

Comments
 (0)