fix(teambition): international upload (close #5360)

This commit is contained in:
Andy Hsu
2023-11-29 22:51:03 +08:00
parent f4dcf4599c
commit b99e709bdb
3 changed files with 41 additions and 10 deletions

View File

@ -0,0 +1,18 @@
package teambition
import "strings"
func getBetweenStr(str, start, end string) string {
n := strings.Index(str, start)
if n == -1 {
return ""
}
n = n + len(start)
str = string([]byte(str)[n:])
m := strings.Index(str, end)
if m == -1 {
return ""
}
str = string([]byte(str)[:m])
return str
}