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

Escaping special regex chars #844

Merged
merged 4 commits into from
Aug 22, 2024
Merged

Escaping special regex chars #844

merged 4 commits into from
Aug 22, 2024

Conversation

ReinierCC
Copy link
Collaborator

To properly sanitize input strings we have to escape any special characters.

Wanted to get some feedback on this implementation, where I manually specified the special characters and are escaping.

Some other potential routes would be to use a library with this feature but, this would create a new dependency.

Currently have a simple test function in the same file. Can move this to a more appropriate location after feedback.

@ReinierCC ReinierCC self-assigned this Aug 8, 2024
@Tatsinnit Tatsinnit added bug Something isn't working enhancement 🚀 New feature or request or improvements on existing code. labels Aug 8, 2024
@ReinierCC ReinierCC marked this pull request as ready for review August 20, 2024 15:38
Copy link
Collaborator

@hsubramanianaks hsubramanianaks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, just make sure to run a manual test for tcp dump to make sure it works. Thanks for finding this and fixing it @ReinierCC

@ReinierCC ReinierCC merged commit 5c1e306 into Azure:main Aug 22, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement 🚀 New feature or request or improvements on existing code.
Projects
Development

Successfully merging this pull request may close these issues.

3 participants