We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6376b30 commit 960cffeCopy full SHA for 960cffe
reportportal_client/helpers.py
@@ -505,11 +505,11 @@ def translate_glob_to_regex(pattern: Optional[str]) -> Optional[re.Pattern]:
505
506
507
def match_pattern(pattern: Optional[re.Pattern], line: Optional[str]) -> bool:
508
- """Check if the line matches given glob pattern.
+ """Check if the line matches given pattern. Handles None values.
509
510
- :param pattern: glob pattern
+ :param pattern: regex pattern
511
:param line: line to check
512
- :return: True if the line matches the pattern with asterisks, False otherwise
+ :return: True if the line matches the pattern, False otherwise
513
"""
514
if pattern is None:
515
return True
0 commit comments