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>
(cherry picked from commit b79d7f1881)
release-4.2
Benoit Tigeot 4 months ago committed by Scott Rigby
parent 1e47395a95
commit e3fd51f331
No known key found for this signature in database
GPG Key ID: C7C6FBB5B91C1155

@ -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