Avoid regex construction inside loops
Constructing regular expressions inside loops repeatedly allocates and reparses patterns.
#Metadata
#Why it matters
Constructing regular expressions inside loops repeatedly allocates and reparses patterns.
#Remediation
Refactor this path to avoid repeated work in hot execution paths.
#Repository path
The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.performance.no-regex-construction-in-loop.rule.yaml.