Hi, I am new to rescript. I have encounter a problem when trying to use Js.Re.captures with Option.map. I have attach an example below. The compiler complains that Js.Re.captures is a curried function, and it compiles after simply warping the original function. I believe there is nothing wrong with Js.Re.captures.
Thank you for reading.
Example