Skip to content

Commit

Permalink
Remove trailing underlines
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Jul 10, 2023
1 parent e43073e commit 113cf19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sigma/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ def removesuffix(base: str, suffix: str) -> str:
if identifier:
identifier = removesuffix(identifier, "Backend")
identifier = removesuffix(identifier, "backend")
identifier = removesuffix(identifier, "_")
words = re.findall(r"[A-Z](?:[A-Z]*(?![a-z])|[a-z]*)", identifier)
if len(words) == 0:
return identifier.lower()
Expand Down

0 comments on commit 113cf19

Please sign in to comment.