Skip to content

Commit 45057a4

Browse files
fix: RegExp.Result.t should be an array of options
1 parent 0b4bd00 commit 45057a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Core__RegExp.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
type t = Js.Re.t
22

33
module Result = {
4-
type t = array<string>
4+
type t = array<option<string>>
55
@get_index external fullMatch: (t, @as(0) _) => string = ""
66
@send external matches: (t, @as(1) _) => array<string> = "slice"
77
@get external index: t => int = "index"

src/Core__RegExp.resi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module Result: {
1313
/**
1414
Type representing the result of a `RegExp` execution.
1515
*/
16-
type t = array<string>
16+
type t = array<option<string>>
1717

1818
/**
1919
`fullMatch(regExpResult)` returns the full string that matched in this result.

0 commit comments

Comments
 (0)