mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-21 03:48:46 +08:00
15 lines
225 B
Go
15 lines
225 B
Go
package utils
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"github.com/alist-org/alist/v3/internal/conf"
|
|
)
|
|
|
|
func MappingName(name string) string {
|
|
for k, v := range conf.FilenameCharMap {
|
|
name = strings.ReplaceAll(name, k, v)
|
|
}
|
|
return name
|
|
}
|