replace - _ with whitespace for default homepage.name

This commit is contained in:
yusing
2024-10-03 10:19:31 +08:00
parent e6b4630ce9
commit 4f09dbf044
2 changed files with 8 additions and 3 deletions

View File

@@ -59,7 +59,12 @@ func (cfg *Config) HomepageConfig() H.HomePageConfig {
}
if item.Name == "" {
item.Name = U.Title(alias)
item.Name = U.Title(
strings.ReplaceAll(
strings.ReplaceAll(alias, "-", " "),
"_", " ",
),
)
}
if p.GetType() == PR.ProviderTypeDocker {