chore: replace sep `_` with `@` of ipa name

pull/1831/head
Noah Hsu 2022-09-18 16:53:39 +08:00
parent 6c89c6c8ae
commit f80be96cf9
1 changed files with 4 additions and 4 deletions

View File

@ -42,10 +42,10 @@ func Plist(c *gin.Context) {
fullName = strings.TrimSuffix(fullName, ".plist")
name := fullName
identifier := fmt.Sprintf("ci.nn.%s", url.PathEscape(fullName))
if strings.Contains(fullName, "_") {
ss := strings.Split(fullName, "_")
name = strings.Join(ss[:len(ss)-1], "_")
sep := "@"
if strings.Contains(fullName, sep) {
ss := strings.Split(fullName, sep)
name = strings.Join(ss[:len(ss)-1], sep)
identifier = ss[len(ss)-1]
}