Skip to content

Commit

Permalink
fix: Version::is_dev returning false for dev version (fix #289) (#293)
Browse files Browse the repository at this point in the history
fix: Version::is_dev returning false for dev version
  • Loading branch information
Wackyator authored Aug 25, 2023
1 parent 344b7f4 commit b2445e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rattler_conda_types/src/version/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ impl Version {
pub fn is_dev(&self) -> bool {
self.segments()
.flat_map(|segment| segment.components())
.any(|component| component.as_string() == Some("dev"))
.any(|component| component.is_dev())
}

/// Check if this version version and local strings start with the same as other.
Expand Down

0 comments on commit b2445e5

Please sign in to comment.