diff options
author | sterni <sternenseemann@systemli.org> | 2022-09-20T10·49+0200 |
---|---|---|
committer | sterni <sternenseemann@systemli.org> | 2022-09-21T13·08+0000 |
commit | 6e6edcce6ac38bf2ca088a7efeb73f5db0bee8a6 (patch) | |
tree | 77f7ab2c35a71d72416e4fb7c44c9a5ed77f8c62 /tvix/eval/src/builtins/versions.rs | |
parent | 0096939bf6edd9fd87cd555820c741b0da5508f2 (diff) |
fix(tvix/eval/versions): dash is a divider, not underscore r/4946
https: //github.com/NixOS/nix/blob/cd35bbbeef72375873e396b9ffed14a4638693a8/src/libstore/names.cc#L63 Change-Id: I1d5aba6060d11778f3b79089f4b27ef8849e4d37 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6709 Reviewed-by: grfn <grfn@gws.fyi> Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/src/builtins/versions.rs')
-rw-r--r-- | tvix/eval/src/builtins/versions.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/builtins/versions.rs b/tvix/eval/src/builtins/versions.rs index cc36ae5b6e0a..60d4503c7e4b 100644 --- a/tvix/eval/src/builtins/versions.rs +++ b/tvix/eval/src/builtins/versions.rs @@ -57,7 +57,7 @@ impl<'a> Iterator for VersionPartsIter<'a> { let (pos, char) = char.unwrap(); match char { // Divider encountered - '.' | '_' => { + '.' | '-' => { let cached_part = std::mem::replace(&mut self.cached_part, InternalPart::Break); match cached_part { InternalPart::Number { range } => { |