feat: custom filename char mapping

fixes #2447 #2446 #2440 #2409 #2006 #1979 #1507 #324 #691 #518 #430
This commit is contained in:
Noah Hsu
2022-11-22 15:54:18 +08:00
parent 25fd343069
commit c09800790b
10 changed files with 43 additions and 18 deletions

10
pkg/utils/str.go Normal file
View File

@ -0,0 +1,10 @@
package utils
import "strings"
func MappingName(name string, m map[string]string) string {
for k, v := range m {
name = strings.ReplaceAll(name, k, v)
}
return name
}