From 4eb781d47fedfd6f8db3b5654fda797e2fde97d9 Mon Sep 17 00:00:00 2001 From: Julian Date: Thu, 25 Apr 2024 14:27:59 +0100 Subject: [PATCH] cdep: yaml fix (#775) --- tools/cdep/app/add_config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cdep/app/add_config.go b/tools/cdep/app/add_config.go index c271fab..6dc2330 100644 --- a/tools/cdep/app/add_config.go +++ b/tools/cdep/app/add_config.go @@ -18,7 +18,7 @@ var branchRegAdd = regexp.MustCompile(`"branch"\s*:\s*"([^"]+)"`) var commitRegAddYaml = regexp.MustCompile(`commit\s*:\s*"?[a-f\d]{40}"?`) var imageTagRegAddYaml = regexp.MustCompile(`tag\s*:\s*"?[a-z\d-]+"?`) -var branchRegAddYaml = regexp.MustCompile(`branch\s*:\s*"?(a-z\d-\.+)"?`) +var branchRegAddYaml = regexp.MustCompile(`branch\s*:\s*"?([a-z\d-\.]+)"?`) func (a App) AddToConfig(path, branchName, commitHash string) (bool, error) { blob, err := os.ReadFile(path)