Commit d0e9029
committed
Also consider "-" as version number separator char
Update extended_default mechanism to also consider "-" as a version
number separator character.
This is useful for instance when using modules generated by Spack with a
module projection including the package installation hash.
Like for ".", version chunks after a "-" are compared in a "dictionary
sort" manner (10-b34d72c is greater than 10-a45e83d).
Fixes #619
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>1 parent b7a1a5d commit d0e9029
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
0 commit comments