Commit 0c093eba authored by Andre Maroneze's avatar Andre Maroneze 💬 Committed by Virgile Prevosto
Browse files

[Filepath] omit initial '/' in to_base_uri

parent 6d52012b
......@@ -282,7 +282,14 @@ module Normalized = struct
let p = insert cwd name in
let buf = Buffer.create 80 in
let res = add_uri_path buf p in
res, Buffer.contents buf
let uri =
Buffer.contents buf in
let uri =
String.sub uri 1 (String.length uri - 1)
with Invalid_argument _ -> uri
res, uri
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment