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

VRMLLoader: Simplify regex to reduce exponential backtracking #23047

Merged
merged 1 commit into from
Dec 18, 2021

Conversation

gero3
Copy link
Contributor

@gero3 gero3 commented Dec 18, 2021

Description

A simplification and correction of the string literal regex in the VRML Loader. There was also the intention of using non capturing groups but the ':' and '?' were switched in place. The new regex also affects the following LGTM error: link

Example: https://raw.githack.com/gero3/three.js/SimplifyRegex/examples/webgl_loader_vrml.html

@Mugen87 Mugen87 added this to the r136 milestone Dec 18, 2021
@Mugen87 Mugen87 merged commit 17591f7 into mrdoob:dev Dec 18, 2021
@Mugen87 Mugen87 changed the title VRML Loader: Simplify regex to reduce exponential backtracking VRMLLoader: Simplify regex to reduce exponential backtracking Dec 18, 2021
@mrdoob
Copy link
Owner

mrdoob commented Dec 18, 2021

Thanks!

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.

3 participants