Skip to content

Commit fc60de2

Browse files
authored
Merge pull request #295 from SigmaHQ/allow_num_in_classnames
Fix: Allow also Number in Backend Class-Names
2 parents f178cb2 + 063c25f commit fc60de2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sigma/plugins.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def removesuffix(base: str, suffix: str) -> str:
250250
identifier = removesuffix(identifier, "Backend")
251251
identifier = removesuffix(identifier, "backend")
252252
identifier = removesuffix(identifier, "_")
253-
words = re.findall(r"[A-Z](?:[A-Z]*(?![a-z])|[a-z]*)", identifier)
253+
words = re.findall(r"[A-Z](?:[A-Z0-9]*(?![a-z0-9])|[a-z0-9]*)", identifier)
254254
if len(words) == 0:
255255
return identifier.lower()
256256
rebuilt_identifier = "_".join(words).lower()

0 commit comments

Comments
 (0)