Refactor all pre-compiled regexp to package level vars

Addresses #8057

Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
Upstream-commit: 4119c9d7d955757092adc3410da8d75f972bd3c1
Component: engine
This commit is contained in:
Phil Estes
2014-09-16 12:57:44 -04:00
parent a7a415757f
commit b4607092ee
5 changed files with 18 additions and 17 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ import (
)
var (
TOKEN_ENV_INTERPOLATION = regexp.MustCompile("(\\\\\\\\+|[^\\\\]|\\b|\\A)\\$({?)([[:alnum:]_]+)(}?)")
TOKEN_ENV_INTERPOLATION = regexp.MustCompile(`(\\\\+|[^\\]|\b|\A)\$({?)([[:alnum:]_]+)(}?)`)
)
// handle environment replacement. Used in dispatcher.