We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The CI run https://github.com/pygments/pygments/runs/7368863507?check_suite_focus=true timed out in test_random_input for SquidConfLexer.
test_random_input
SquidConfLexer
The offending regex is very likely
ip_re = ( r'(?:(?:(?:[3-9]\d?|2(?:5[0-5]|[0-4]?\d)?|1\d{0,2}|0x0*[0-9a-f]{1,2}|' r'0+[1-3]?[0-7]{0,2})(?:\.(?:[3-9]\d?|2(?:5[0-5]|[0-4]?\d)?|1\d{0,2}|' r'0x0*[0-9a-f]{1,2}|0+[1-3]?[0-7]{0,2})){3})|(?!.*::.*::)(?:(?!:)|' r':(?=:))(?:[0-9a-f]{0,4}(?:(?<=::)|(?<!::):)){6}(?:[0-9a-f]{0,4}' r'(?:(?<=::)|(?<!::):)[0-9a-f]{0,4}(?:(?<=::)|(?<!:)|(?<=:)(?<!::):)|' r'(?:25[0-4]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-4]|2[0-4]\d|1\d\d|' r'[1-9]?\d)){3}))' )
I'm pretty eager to dissect that!!
The text was updated successfully, but these errors were encountered:
This can probably also be simplified a lot. We don't need to verify the 0-255 range for octets, for example.
Sorry, something went wrong.
Squidconf: Simplify IP regexes, fix catastrophic backtracking
bdc0822
Fixes pygments#2191
Closed via #2583
jeanas
Successfully merging a pull request may close this issue.
The CI run https://github.com/pygments/pygments/runs/7368863507?check_suite_focus=true timed out in
test_random_input
forSquidConfLexer
.The offending regex is very likely
I'm pretty eager to dissect that!!
The text was updated successfully, but these errors were encountered: