Skip to content

Commit

Permalink
fix KeywordNameMatch class
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Jan 10, 2025
1 parent 7cc9747 commit 639cdba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion robotframework_reportportal/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ class KeywordNameMatch(KeywordEqual):

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


class KeywordTypeEqual(KeywordEqual):
Expand Down

0 comments on commit 639cdba

Please sign in to comment.