From 639cdbaeb564b446e1f1b86cd9171e3c20ddc8ea Mon Sep 17 00:00:00 2001 From: Vadzim Hushchanskou Date: Fri, 10 Jan 2025 16:43:37 +0300 Subject: [PATCH] fix KeywordNameMatch class --- robotframework_reportportal/model.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/robotframework_reportportal/model.py b/robotframework_reportportal/model.py index 257384a..88ba6ba 100644 --- a/robotframework_reportportal/model.py +++ b/robotframework_reportportal/model.py @@ -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):