forked from LaconicNetwork/kompose
test: add unit-tests for FormatEnvName function
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
This commit is contained in:
parent
771e564645
commit
d633c31e15
@ -861,8 +861,7 @@ func FormatEnvName(name string) string {
|
||||
if len(envName) > 63 {
|
||||
envName = envName[len(envName)-63:]
|
||||
}
|
||||
envName = strings.Replace(envName, ".", "-", -1)
|
||||
return envName
|
||||
return strings.Replace(envName, ".", "-", -1)
|
||||
}
|
||||
|
||||
// FormatFileName format file name
|
||||
|
||||
Loading…
Reference in New Issue
Block a user