diff --git a/cmd/root.go b/cmd/root.go index 42377b1..cc46ca4 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -12,7 +12,7 @@ import ( ) const ( - ReleaseVersion string = "3.2.4" + ReleaseVersion string = "3.2.5" ) var ( diff --git a/cmd/sort.go b/cmd/sort.go index b8ef453..e6a78cc 100644 --- a/cmd/sort.go +++ b/cmd/sort.go @@ -92,11 +92,11 @@ Loop: } func pathUrlEscape(path string) string { - placeholder := strings.Replace(path, "/", "", -1) + placeholder := strings.Replace(path, "/", "path_placeholder", -1) escaped := url.QueryEscape(placeholder) - return strings.Replace(escaped, "", "/", -1) + return strings.Replace(escaped, "path_placeholder", "/", -1) } func paginateSorted(path, first, last, queryParams string, regexes *regexes, formats types.Types) (string, error) {