Skip to content

Commit

Permalink
chore: replace sep _ with @ of ipa name
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Sep 18, 2022
1 parent 6c89c6c commit f80be96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/handles/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}

Expand Down

0 comments on commit f80be96

Please sign in to comment.