ReDoS-checker icon indicating copy to clipboard operation
ReDoS-checker copied to clipboard

Doesn't match simple evil case.

Open RealAlphabet opened this issue 4 years ago • 1 comments

Evil regex : (a+?)(b+)

For example, with this as input : (a times 1000)zab

The number of steps increases exponentially.

RealAlphabet avatar Aug 04 '21 15:08 RealAlphabet

Yes. This has a bug. I tried the evil regex and found that it is not working. ^([a-zA-Z]+[,.]?[ ]?|[a-zA-Z]+['-]?)+$

natrajms avatar Dec 04 '22 09:12 natrajms