mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
* fix(stack) normalize stack name EE-1701 * fix(stack) normalize swarm stack name and fix rebase error EE-1701 * fix(stack) add front end stack name validation EE-1701 * fix(stack) make stack name regex as a const EE-1701 * fix(stack) reuse stack name regex for compose and swarm EE-1701 * fix(stack) add name validation for stack duplication form EE-1701 Co-authored-by: Simon Meng <simon.meng@portainer.io>
5 lines
No EOL
95 B
Go
5 lines
No EOL
95 B
Go
package exec
|
|
|
|
import "regexp"
|
|
|
|
var stackNameNormalizeRegex = regexp.MustCompile("[^-_a-z0-9]+") |