Skip to content

Commit

Permalink
Correct unnecessary alternation in URL parser
Browse files Browse the repository at this point in the history
Signed-off-by: David Allsopp <david.allsopp@metastack.com>
  • Loading branch information
dra27 committed Mar 17, 2018
1 parent dcdb6b3 commit 7db852f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/opamUrl.ml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ let split_url =
opt @@ seq [
(* Backend *)
opt @@ seq [ group @@ rep @@ diff any (set "+:");
alt [ char '+'; str "://"] ];
char '+' ];
(* Protocol *)
group @@ rep @@ diff any (char ':');
(* Separator *)
Expand Down

0 comments on commit 7db852f

Please sign in to comment.