From 31e0340959c7e5515bc728e5836bd3a06ec6c583 Mon Sep 17 00:00:00 2001 From: Patrick O'Connor Date: Tue, 2 Feb 2016 18:02:28 -0800 Subject: [PATCH] Updated getEscapedName with slash to dash instead of space Remove only the first slash, convert the rest to dash --- provider/provider.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/provider/provider.go b/provider/provider.go index 78087da9e..0f9829040 100644 --- a/provider/provider.go +++ b/provider/provider.go @@ -63,6 +63,7 @@ func replace(s1 string, s2 string, s3 string) string { return strings.Replace(s3, s1, s2, -1) } +// Escape beginning slash "/", convert all others to dash "-" func getEscapedName(name string) string { - return strings.Replace(name, "/", "", -1) + return strings.Replace(strings.TrimPrefix(name, "/"), "/", "-", -1) }