mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-16 04:43:42 +00:00
Remove length constraint (#190)
This commit is contained in:
1 parent
bf3824cc10
commit
67542608a2
1 file changed
+1
-1
@@ -284,7 +284,7 @@ func createContainerName(parts ...string) string {
|
|||||||
name = append(name, trimToLen(pattern.ReplaceAllString(part, "-"), partLen))
|
name = append(name, trimToLen(pattern.ReplaceAllString(part, "-"), partLen))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return trimToLen(strings.Trim(strings.Join(name, "-"), "-"), 30)
|
return strings.Trim(strings.Join(name, "-"), "-")
|
||||||
}
|
}
|
||||||
|
|
||||||
func trimToLen(s string, l int) string {
|
func trimToLen(s string, l int) string {
|
||||||
|
|||||||
Reference in new issue
Block a user