Skip to content

Commit

Permalink
Fixed issues if re_escpae_char is not set by changing default
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspatzke committed Feb 1, 2025
1 parent 30660ed commit e912f01
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sigma/conversion/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit e912f01

Please sign in to comment.