Skip to content

Commit ff196a7

Browse files
committed
fix: switch to = sign instead of @ sign for package version cli flag
Signed-off-by: Dominik Tomasi <[email protected]>
1 parent 8315027 commit ff196a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/update.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strings"
99
)
1010

11-
var packagePattern = regexp.MustCompile(`^[^@]+@v?[\d]+\.[\d]+\.[\d]+$`) // Regular expression to validate package format
11+
var packagePattern = regexp.MustCompile(`^[^=]+=v?[\d]+\.[\d]+\.[\d]+$`) // Regular expression to validate package format
1212

1313
// updateCmd represents the update command for updating dependencies
1414
var updateCmd = &cobra.Command{
@@ -33,7 +33,7 @@ var updateCmd = &cobra.Command{
3333
}
3434

3535
// Split the package into name and version
36-
parts := strings.Split(pkg, "@")
36+
parts := strings.Split(pkg, "=")
3737
packages = append(packages, updater.Package{Name: parts[0], Version: parts[1]})
3838
}
3939

0 commit comments

Comments
 (0)