Skip to content

Commit

Permalink
urls: backward compatibility with ugly 'git://https://foo'
Browse files Browse the repository at this point in the history
  • Loading branch information
AltGr committed Oct 19, 2015
1 parent fa91c39 commit 83b5b99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/opamUrl.ml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ let split_url =
let (@@) f x = f x in
Re.(compile @@ seq [
opt @@ seq [
opt @@ seq [group @@ rep @@ diff any (set "+:"); char '+'];
opt @@ seq [ group @@ rep @@ diff any (set "+:");
alt [ char '+'; str "://"] ];
group @@ rep @@ diff any (char ':');
str "://"
];
Expand Down

0 comments on commit 83b5b99

Please sign in to comment.