I was just going to open an issue in the rescript-core repo for this. As a workaround you can use Js.String2.match_, which is typed to return an option<array<option<string>>>
↧
RegExp.Result.t inconsistency
↧