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)
This regular expression seems to cause long processing times.
mandarinets/main-core/utils/decoratorFinder.ts
Line 23 in 4e132a4
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: