File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -892,7 +892,7 @@ module Parser = struct
892892 let scheme =
893893 lift
894894 (fun s -> Some (Pct. decode (Pct. cast_encoded s)))
895- (take_while (fun c -> c <> ':' && c <> '/' && c <> '?' && c <> '#' )
895+ (take_while (fun c -> c <> '@' && c <> ' :' && c <> '/' && c <> '?' && c <> '#' )
896896 < * char ':' )
897897 < |> return None
898898
Original file line number Diff line number Diff line change 22 (name test_runner)
33 (package uri)
44 (modules test_runner)
5- (libraries uri uri.services oUnit))
5+ (libraries fmt uri uri.services oUnit))
66
77(test
88 (name test_runner_sexp)
Original file line number Diff line number Diff line change @@ -422,6 +422,8 @@ let test_with_change = [
422422 let urn = Uri. of_string " urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6" in
423423 let urn2= Uri. with_scheme urn (Some " urn" ) in
424424 assert_equal ~printer urn urn2;
425+ let git
= Uri. of_string
" [email protected] :owner/repo" in 426+ assert_equal ~printer: Fmt. (to_to_string (option string )) (Uri. scheme git) None ;
425427
426428 let urn_path =
427429 Uri. with_path Uri. empty " uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6"
You can’t perform that action at this time.
0 commit comments