Skip to content

Commit 3e7d65b

Browse files
committed
Re.Group.get 0 is not the first group
It's the whole match.
1 parent 1722409 commit 3e7d65b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/dev_repo.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ let repo_name t =
2525
let path = Uri.of_string t |> Uri.path in
2626
match Re.exec_opt repo_name_regexp path with
2727
| Some group ->
28-
Ok (Re.Group.get group 0)
28+
Ok (Re.Group.get group 1)
2929
| None ->
3030
Rresult.R.error_msgf
3131
"unexpected empty string while computing name for dev_repo: \"%s\"" t

0 commit comments

Comments
 (0)