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

Ruby: Fixed exponential backtracking #2225

Merged

Conversation

RunDevelopment
Copy link
Member

This fixes #2224.

I didn't add a test because, as pointed out in the issue, the code causing the exponential backtracking isn't ruby code.

@RunDevelopment
Copy link
Member Author

I'll merge this now because the fix is quite simple and because exponential backtracking issues are pretty severe.

@RunDevelopment
Copy link
Member Author

Misclicked

@RunDevelopment RunDevelopment merged commit c5de5aa into PrismJS:master Feb 21, 2020
@RunDevelopment RunDevelopment deleted the ruby-exp-backtracking-fix branch February 21, 2020 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PrismJS ruby highlighting freezes on specific code
1 participant