mirror of
https://github.com/Awuqing/BackupX.git
synced 2026-05-07 06:12:56 +08:00
17 lines
336 B
Go
17 lines
336 B
Go
package backup
|
|
|
|
import "strings"
|
|
|
|
func normalizeDatabaseNames(items []string) []string {
|
|
result := make([]string, 0, len(items))
|
|
for _, item := range items {
|
|
for _, part := range strings.Split(item, ",") {
|
|
trimmed := strings.TrimSpace(part)
|
|
if trimmed != "" {
|
|
result = append(result, trimmed)
|
|
}
|
|
}
|
|
}
|
|
return result
|
|
}
|