ladybird icon indicating copy to clipboard operation
ladybird copied to clipboard

LibRegex: Ensure nullable quantifiers backtrack when input remains

Open aplefull opened this issue 10 months ago • 0 comments

This makes patterns like /(a?b??)*/ correctly match the string.

Issue was originally found in test262: https://github.com/tc39/test262/blob/9d8efae5c2c1848b9c3362c4aa81dd360ff8d3a7/test/built-ins/RegExp/nullable-quantifier.js

aplefull avatar Mar 01 '25 17:03 aplefull