Failed captures produced `.some(nil)`
hamishknight opened this issue · comments
For e.g:
let r = Regex {
Optionally {
Optionally {
Capture {
"a"
}
}
}
}
matching against the empty input yields a capture of .some(nil)
. We ought to produce nil
.