1
0
mirror of https://github.com/docker/cli.git synced 2025-07-18 23:42:15 +03:00

cli-plugins/manager: use lazyregexp to compile regexes on first use

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-04-10 11:46:47 +02:00
parent 7fde1f799f
commit 1ed3859879
2 changed files with 6 additions and 2 deletions

View File

@ -75,6 +75,10 @@ func (r *Regexp) ReplaceAllLiteralString(src, repl string) string {
return r.re().ReplaceAllLiteralString(src, repl)
}
func (r *Regexp) String() string {
return r.re().String()
}
func (r *Regexp) SubexpNames() []string {
return r.re().SubexpNames()
}