Merge pull request #184 from dontrebootme/master
Updated getEscapedName with slash to dash instead of space
This commit is contained in:
commit
d3598021b7
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue