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

Decorator finder processes for a long time or inifinitely #295

Open
joas8211 opened this issue Jul 19, 2021 · 0 comments
Open

Decorator finder processes for a long time or inifinitely #295

joas8211 opened this issue Jul 19, 2021 · 0 comments

Comments

@joas8211
Copy link

This regular expression seems to cause long processing times.

[/(`)([\s\S]*)+(?<!\\)(`){1}/i],

It seems unoptimized. If someone would care to explain what it should be doing then I could write better expression to replace it.
In my view, it tries to match template literals. Is that right?

Here's an example code that causes long / infinite processing:

'``/* Lorem ipsum Mandarine. */'.match(/(`)([\s\S]*)+(?<!\\)(`){1}/i)
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

No branches or pull requests

1 participant