From f80be96cf9b2cfc8f8d5fc85d138b58b0d6ef917 Mon Sep 17 00:00:00 2001 From: Noah Hsu Date: Sun, 18 Sep 2022 16:53:39 +0800 Subject: [PATCH] chore: replace sep `_` with `@` of ipa name --- server/handles/helper.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/handles/helper.go b/server/handles/helper.go index 57b92b73..66d03048 100644 --- a/server/handles/helper.go +++ b/server/handles/helper.go @@ -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] }