-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[receiver/receivercreator] Remove backslash only before backtick #38614
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
Conversation
Co-authored-by: Antoine Toulme <[email protected]>
945f62f
to
cb68796
Compare
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
@dmitryax could you take a look plz |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Please look at the conflict - looks like your change was applied? |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
Description
Previously, the code was erroneously removing backslashes before every symbol in regular expressions. This caused issues when the configuration included regular expressions. For instance:
Before:
expr: body matches "^\\{"
Was incorrectly translated to:
expr: body matches "^\{"
Resulting in an illegal sequence.
This pull request addresses the issue by modifying the code to only remove backslashes before the backtick symbol, ensuring proper handling of regular expressions in the configuration.
Testing
Tests added