Skip to content

Commit 8c49c85

Browse files
committed
Fix regular expression
Some things were optional.
1 parent faf5acf commit 8c49c85

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/dev_repo.ml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ let repo_name_regexp =
1111
let open Re in
1212
compile
1313
(seq [
14-
char '/';
14+
opt (char '/');
1515
rep (char '.');
1616
group (rep (compl [ char '.'; char '/' ]));
17-
char '.';
18-
rep (compl [ char '/' ]);
17+
opt (seq [
18+
char '.';
19+
rep (compl [ char '/' ])]);
1920
rep (char '/');
2021
stop
2122
])

0 commit comments

Comments
 (0)