super-expressive icon indicating copy to clipboard operation
super-expressive copied to clipboard

incomplete *Lazy coverage

Open chris-findlay opened this issue 4 years ago • 2 comments

While you have covered all variants of {,}, including * and +, the lazy alternatives are missing for exactly and atLeast.

chris-findlay avatar Jan 21 '21 22:01 chris-findlay

Hey Chris - indeed, atLeast should have a lazy equivalent. For exactly I don't think it would make sense, since the regex can't match more anyway (though there could be a exactlyLazy that just dispatches to exactly, this might cause more confusion than it's worth).

francisrstokes avatar Feb 21 '21 08:02 francisrstokes

True - I guess it is a bit of a trap for when writing REs that a{4} === a{4}? !== (?:a{4})?.

chris-findlay avatar Feb 21 '21 19:02 chris-findlay