From e912f01ca9a4ef272108acef744f873d530ed87b Mon Sep 17 00:00:00 2001 From: Thomas Patzke Date: Sat, 1 Feb 2025 01:16:43 +0100 Subject: [PATCH] Fixed issues if re_escpae_char is not set by changing default --- sigma/conversion/base.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sigma/conversion/base.py b/sigma/conversion/base.py index 5de71179..9d537d05 100644 --- a/sigma/conversion/base.py +++ b/sigma/conversion/base.py @@ -828,9 +828,7 @@ class variables. If this is not sufficient, the respective methods can be implem # is one of the flags shortcuts supported by Sigma (currently i, m and s) and refers to the # token stored in the class variable re_flags. re_expression: ClassVar[Optional[str]] = None - re_escape_char: ClassVar[Optional[str]] = ( - None # Character used for escaping in regular expressions - ) + re_escape_char: ClassVar[str] = "\\" # Character used for escaping in regular expressions re_escape: ClassVar[Tuple[str]] = () # List of strings that are escaped re_escape_escape_char: bool = True # If True, the escape character is also escaped re_flag_prefix: bool = (