mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
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>
This commit is contained in:
parent
bf78b876c7
commit
b79d7f1881
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue