We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5a8cd4 commit 7fde1f7Copy full SHA for 7fde1f7
1 file changed
cli/context/store/store.go
@@ -14,17 +14,17 @@ import (
14
"net/http"
15
"path"
16
"path/filepath"
17
- "regexp"
18
"strings"
19
+ "github.com/docker/cli/internal/lazyregexp"
20
"github.com/docker/docker/errdefs"
21
"github.com/opencontainers/go-digest"
22
"github.com/pkg/errors"
23
)
24
25
const restrictedNamePattern = "^[a-zA-Z0-9][a-zA-Z0-9_.+-]+$"
26
27
-var restrictedNameRegEx = regexp.MustCompile(restrictedNamePattern)
+var restrictedNameRegEx = lazyregexp.New(restrictedNamePattern)
28
29
// Store provides a context store for easily remembering endpoints configuration
30
type Store interface {
0 commit comments