fix(version): version range || can has no space

From Matt's comment

> The check for " || " should remove the spaces and have "||". Spaces around the || aren't required.

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
pull/31758/head
Benoit Tigeot 2 months ago
parent 7749ebfe8c
commit 9e089fa80b
No known key found for this signature in database
GPG Key ID: 8E6D4FC8AEBDA62C

@ -178,7 +178,7 @@ func (i IndexFile) SortEntries() {
// isVersionRange checks if the version string is a range constraint (e.g., "^1", "~1.10")
// rather than an exact version (e.g., "1.10.0").
func isVersionRange(version string) bool {
return strings.ContainsAny(version, "^~<>=!*xX") || strings.Contains(version, " || ") || strings.Contains(version, " - ")
return strings.ContainsAny(version, "^~<>=!*xX") || strings.Contains(version, "||") || strings.Contains(version, " - ")
}
// Get returns the ChartVersion for the given name.

Loading…
Cancel
Save