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

avoid ambiguous regex in striptags #293

Merged
merged 1 commit into from
Mar 14, 2022
Merged

avoid ambiguous regex in striptags #293

merged 1 commit into from
Mar 14, 2022

Conversation

davidism
Copy link
Member

Split up regex used by striptags to handle comments before tags. This avoids ambiguous regex matches which could lead to backtracking.

@davidism davidism added this to the 2.1.1 milestone Mar 14, 2022
@davidism davidism merged commit 24512e7 into main Mar 14, 2022
@davidism davidism deleted the striptags-regex branch March 14, 2022 16:01
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant