Skip to content

Commit

Permalink
Allow HDF5 versions such as 1.14.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mulimoen committed Jun 10, 2023
1 parent dc1bd61 commit 139027b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hdf5-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl Version {
}

pub fn parse(s: &str) -> Option<Self> {
let re = Regex::new(r"^(1)\.(8|10|12|14)\.(\d\d?)(_\d+)?((-|.)(patch)?\d+)?$").ok()?;
let re = Regex::new(r"^(1)\.(8|10|12|14)\.(\d\d?)(_|.\d+)?((-|.)(patch)?\d+)?$").ok()?;
let captures = re.captures(s)?;
Some(Self {
major: captures.get(1).and_then(|c| c.as_str().parse::<u8>().ok())?,
Expand Down

0 comments on commit 139027b

Please sign in to comment.