UNPKG

pi-lens

Version:

Real-time code feedback for pi — LSP, linters, formatters, type-checking, structural analysis & booboo

15 lines (14 loc) • 282 B
id: redos-nested-quantifier valid: - "const r = /a+b/" - "const r = /[a-z]+/" - "const r = /a{2,3}/" - "const r = /a+b{2,3}/" invalid: - "const r = /(a+)+/" - "const r = /([a-z]+)*/" - "const r = /(a*)*/" - >- const r = /(\d+){2,}/ - >- const r = /(\d+)+/