Add marathon directory subdomain

Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
Emile Vauge 2016-05-31 23:23:23 +02:00
parent 1a75a71ad6
commit 72f88e5c0f
No known key found for this signature in database
GPG key ID: D808B4C167352E59
4 changed files with 55 additions and 7 deletions

View file

@ -85,11 +85,6 @@ 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(strings.TrimPrefix(name, "/"), "/", "-", -1)
}
func normalize(name string) string {
fargs := func(c rune) bool {
return !unicode.IsLetter(c) && !unicode.IsNumber(c)