We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8315027 commit ff196a7Copy full SHA for ff196a7
1 file changed
cmd/update.go
@@ -8,7 +8,7 @@ import (
8
"strings"
9
)
10
11
-var packagePattern = regexp.MustCompile(`^[^@]+@v?[\d]+\.[\d]+\.[\d]+$`) // Regular expression to validate package format
+var packagePattern = regexp.MustCompile(`^[^=]+=v?[\d]+\.[\d]+\.[\d]+$`) // Regular expression to validate package format
12
13
// updateCmd represents the update command for updating dependencies
14
var updateCmd = &cobra.Command{
@@ -33,7 +33,7 @@ var updateCmd = &cobra.Command{
33
}
34
35
// Split the package into name and version
36
- parts := strings.Split(pkg, "@")
+ parts := strings.Split(pkg, "=")
37
packages = append(packages, updater.Package{Name: parts[0], Version: parts[1]})
38
39
0 commit comments