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

Add warning on unknown regex escape #68

Merged
merged 5 commits into from
Aug 27, 2023
Merged

Conversation

vthib
Copy link
Owner

@vthib vthib commented Aug 27, 2023

This is the equivalent of VirusTotal/yara#1880 from YARA.

It detects when escaping done in a regex serves no purpose, and emits a warning in that case.
This detection is more strict than the one in YARA, i see no real reason to ignore escaping to '<', '>', '@', '"', etc. Detecting those are more useful than ignoring them.

@vthib vthib force-pushed the add-regex-escape-warning branch from d98a4cd to 7d3d699 Compare August 27, 2023 20:36
@vthib vthib merged commit 370c6f2 into master Aug 27, 2023
@vthib vthib deleted the add-regex-escape-warning branch August 27, 2023 20:44
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.

1 participant