We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b4bd00 commit 45057a4Copy full SHA for 45057a4
src/Core__RegExp.res
@@ -1,7 +1,7 @@
1
type t = Js.Re.t
2
3
module Result = {
4
- type t = array<string>
+ type t = array<option<string>>
5
@get_index external fullMatch: (t, @as(0) _) => string = ""
6
@send external matches: (t, @as(1) _) => array<string> = "slice"
7
@get external index: t => int = "index"
src/Core__RegExp.resi
@@ -13,7 +13,7 @@ module Result: {
13
/**
14
Type representing the result of a `RegExp` execution.
15
*/
16
17
18
19
`fullMatch(regExpResult)` returns the full string that matched in this result.
0 commit comments