Skip to content

Commit

Permalink
fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
kalbasit committed Dec 1, 2024
1 parent 47fa241 commit 854a8ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/narinfo/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func splitOnce(s string, sep string) (string, string, error) {
return "", "", fmt.Errorf("unable to find separator '%s' in %v", sep, s)
}

if strings.Contains(s[:idx], sep) {
if strings.Contains(s[idx+1:], sep) {
return "", "", fmt.Errorf("found separator '%s' twice or more in %v", sep, s)
}

Expand Down

0 comments on commit 854a8ed

Please sign in to comment.