Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug where SigmaRegularExpression.escape() was buggy when using … #154

Merged
merged 2 commits into from
Nov 4, 2023

Conversation

Res260
Copy link
Contributor

@Res260 Res260 commented Oct 31, 2023

…param escape_escape_char=False. Fixes #153

Found the bug. It was an edge case when nothing was to be escaped. The escape char would get added to every character of the regex.

@thomaspatzke thomaspatzke merged commit 5938f0c into SigmaHQ:main Nov 4, 2023
12 checks passed
@thomaspatzke
Copy link
Member

Thanks a lot! 👍

@Res260 Res260 deleted the fixescaperegex branch November 4, 2023 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Weird behavior with SigmaRegularExpression.escape(escape_escape_char=False)
2 participants