feat: custom filename char mapping
fixes #2447 #2446 #2440 #2409 #2006 #1979 #1507 #324 #691 #518 #430
This commit is contained in:
10
pkg/utils/str.go
Normal file
10
pkg/utils/str.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user