From 063c25f65c4333093ec58aa2f5fd8a563bfa7f3d Mon Sep 17 00:00:00 2001 From: Hendrik Baecker Date: Mon, 21 Oct 2024 17:33:38 +0200 Subject: [PATCH] Fix: Allow also Number in Backend Class-Names --- sigma/plugins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sigma/plugins.py b/sigma/plugins.py index df51b8e9..d0d3e3fb 100644 --- a/sigma/plugins.py +++ b/sigma/plugins.py @@ -250,7 +250,7 @@ def removesuffix(base: str, suffix: str) -> str: identifier = removesuffix(identifier, "Backend") identifier = removesuffix(identifier, "backend") identifier = removesuffix(identifier, "_") - words = re.findall(r"[A-Z](?:[A-Z]*(?![a-z])|[a-z]*)", identifier) + words = re.findall(r"[A-Z](?:[A-Z0-9]*(?![a-z0-9])|[a-z0-9]*)", identifier) if len(words) == 0: return identifier.lower() rebuilt_identifier = "_".join(words).lower()