1
0
mirror of https://github.com/docker/cli.git synced 2025-07-27 18:41:50 +03:00

cli/command/image: 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:40:30 +02:00
parent d76057210a
commit a16c3a49c8
2 changed files with 6 additions and 2 deletions

View File

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