dash
dash copied to clipboard
Regex matching should backtrack
console.log(/.+a/.test('bba'));
This should return true, but currently returns false, because .+ eagerly consumes the whole string.
Instead it should work its way backwards and realize that .+ should only match bb.