Browse Source

fix-92后端返回任务名称不含.,可以含_

pull/270/head
ychao_1983 3 years ago
parent
commit
5a8998c931
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/repo/cloudbrain.go

+ 1
- 1
routers/repo/cloudbrain.go View File

@@ -90,7 +90,7 @@ func cutString(str string, lens int) string {

func jobNamePrefixValid(s string) string {
lowStr := strings.ToLower(s)
re := regexp.MustCompile(`[^a-z0-9\\.\\-]+`)
re := regexp.MustCompile(`[^a-z0-9_\\-]+`)
return re.ReplaceAllString(lowStr, "")
}



Loading…
Cancel
Save