-
-
Notifications
You must be signed in to change notification settings - Fork 426
fix(932130): use lazy regex #3730
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
base: main
Are you sure you want to change the base?
Conversation
f65f101 to
4b8806d
Compare
4b8806d to
16b9ad7
Compare
|
Ugh, looks like |
|
I tried |
mkdir abc
touch abc/myfile.txt
ls a[b///]c
myfile.txt |
|
Didn't knew you meant it in shell context. I thought in regex terms. 🙂 |
|
📊 Quantitative test results for language: |
9c570f7 to
b51d25d
Compare
Signed-off-by: Felipe Zipitria <[email protected]>
Signed-off-by: Felipe Zipitria <[email protected]>
Co-authored-by: Max Leske <[email protected]>
Co-authored-by: Esad Cetiner <[email protected]>
Signed-off-by: Felipe Zipitria <[email protected]>
29fa791 to
991579d
Compare
| \$\([^()]*\) | ||
| \$\{[^{}]*\} | ||
| <\([^()]*\) | ||
| >\([^()]*\) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| \$\([^()]*\) | |
| \$\{[^{}]*\} | |
| <\([^()]*\) | |
| >\([^()]*\) | |
| \$\([^()]+\) | |
| \$\{[^{}]+\} | |
| <\([^()]+\) | |
| >\([^()]+\) |
We should expect atleast one character for command execution, $() or ${} will result in nothing for the attacker.
what
.(anything) to[^\(\)], which performs better while keeping the meaningwhy