From 0d43dbeeb1937642ad0682f7f630d5dc75095d05 Mon Sep 17 00:00:00 2001 From: Seednode Date: Tue, 7 Nov 2023 20:14:27 -0600 Subject: [PATCH] Probably shouldn't use a URL-encoded character in my placeholder, huh --- cmd/root.go | 2 +- cmd/sort.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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) {