diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gleam_stdlib.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gleam_stdlib.erl b/src/gleam_stdlib.erl index e89458b..217d4d1 100644 --- a/src/gleam_stdlib.erl +++ b/src/gleam_stdlib.erl @@ -201,7 +201,7 @@ regex_submatches(String, {S, L}) -> end. regex_matches(String, [{S, L} | Submatches], Number) -> - {match, string:slice(String, S, L), S, Number, + {match, binary:part(String, S, L), S, Number, lists:map(fun(X) -> regex_submatches(String, X) end, Submatches)}. regex_captured(_, [], _) -> []; |