pathRegex segments the url into 3 sections, the pathAtRepo being for example /extra/os/x86_64, package never has a / in front.
urlPath would return a string without / in front if pathAtRepo was an empty string, the adding / in front was required. But if pathAtRepo had a value the added / would result in //extra/os/x86_64 as a prefix.
This PR corrects that behavior so it always returns a string starting with /.
pathRegex segments the url into 3 sections, the
pathAtRepo
being for example/extra/os/x86_64
, package never has a/
in front.urlPath
would return a string without/
in front ifpathAtRepo
was an empty string, the adding/
in front was required. But ifpathAtRepo
had a value the added/
would result in//extra/os/x86_64
as a prefix.This PR corrects that behavior so it always returns a string starting with
/
.