Commit 9de1221
Prioritize Leading Digits in Qualifier
Previously, when wildcarded qualifiers were compared, they were compared
purely lexically. This disadvantaged versions that exclusively used numbers
in the qualifier (e.g. Java versions). The result of this was that no matter
what _121 would always fall before _91 which in turn led to some poor work
arounds using the wildcards. This change now handles leading digits
numerically rather than lexically, after which the rest of the qualifier is
compared lexically.
[cloudfoundry#397][cloudfoundry#402]1 parent 6ff8e9d commit 9de1221
2 files changed
Lines changed: 5 additions & 3 deletions
File tree
- lib/java_buildpack/util
- spec/java_buildpack/repository
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | | - | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
0 commit comments