Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-forte-elastic committed Oct 30, 2023
1 parent 3aba466 commit f1bce1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eql/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def is_insensitive():
"""Check if insensitivity is enabled."""
return CASE_INSENSITIVE


def is_cidr_pattern(cidr):
"""Check if a string is a valid CIDR notation."""
if "/" not in cidr:
Expand All @@ -78,6 +79,7 @@ def is_cidr_pattern(cidr):
except ValueError:
return False


def fold_case(s):
"""Helper function for normalizing case for strings."""
if is_insensitive() and is_string(s):
Expand Down

0 comments on commit f1bce1b

Please sign in to comment.