aboutsummaryrefslogtreecommitdiff
path: root/src/gleam_stdlib.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/gleam_stdlib.erl')
-rw-r--r--src/gleam_stdlib.erl2
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(_, [], _) -> [];