Skip to content

Commit

Permalink
Documentation correction
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Dec 11, 2024
1 parent 6376b30 commit 960cffe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions reportportal_client/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,11 +505,11 @@ def translate_glob_to_regex(pattern: Optional[str]) -> Optional[re.Pattern]:


def match_pattern(pattern: Optional[re.Pattern], line: Optional[str]) -> bool:
"""Check if the line matches given glob pattern.
"""Check if the line matches given pattern. Handles None values.
:param pattern: glob pattern
:param pattern: regex pattern
:param line: line to check
:return: True if the line matches the pattern with asterisks, False otherwise
:return: True if the line matches the pattern, False otherwise
"""
if pattern is None:
return True
Expand Down

0 comments on commit 960cffe

Please sign in to comment.