This website requires JavaScript.
Explore
关于
Help
Register
Sign In
github
/
portainer
mirror of
https://github.com/portainer/portainer
Watch
1
Star
0
Fork
You've already forked portainer
0
Code
Issues
Releases
Wiki
Activity
f6085ffad7
portainer
/
api
/
exec
/
common.go
6 lines
96 B
Go
Raw
Normal View
History
Unescape
Escape
fix(stack) normalize stack name EE-1701 (#5776) * 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>
2021-10-01 03:56:34 +00:00
package
exec
import
"regexp"
fix(docker): provide workaround to save network name variable (#6080) * fix/EE-1862/unable-to-stop-or-remove-stack workaround for var without default value in yaml file * fix/EE-1862/unable-to-stop-or-remove-stack check yaml file * fixed func and var names * wrapper error and used bool for stringset * UT case for createNetworkEnvFile * UT case for %s=%s * powerful StringSet * wrapper error for extract network name * wrapper all the return err * store more env * put to env file * make default value None
2021-12-09 15:09:34 +00:00
var
stackNameNormalizeRegex
=
regexp
.
MustCompile
(
"[^-_a-z0-9]+"
)