Skip to content

Commit 139027b

Browse files
committed
Allow HDF5 versions such as 1.14.1.2
1 parent dc1bd61 commit 139027b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hdf5-sys/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl Version {
2929
}
3030

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

0 commit comments

Comments
 (0)