Skip to content

Commit 960cffe

Browse files
committed
Documentation correction
1 parent 6376b30 commit 960cffe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reportportal_client/helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,11 +505,11 @@ def translate_glob_to_regex(pattern: Optional[str]) -> Optional[re.Pattern]:
505505

506506

507507
def match_pattern(pattern: Optional[re.Pattern], line: Optional[str]) -> bool:
508-
"""Check if the line matches given glob pattern.
508+
"""Check if the line matches given pattern. Handles None values.
509509
510-
:param pattern: glob pattern
510+
:param pattern: regex pattern
511511
:param line: line to check
512-
:return: True if the line matches the pattern with asterisks, False otherwise
512+
:return: True if the line matches the pattern, False otherwise
513513
"""
514514
if pattern is None:
515515
return True

0 commit comments

Comments
 (0)