We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38256e5 commit f3cb37cCopy full SHA for f3cb37c
hdf5-sys/build.rs
@@ -29,7 +29,7 @@ impl Version {
29
}
30
31
pub fn parse(s: &str) -> Option<Self> {
32
- let re = Regex::new(r"^(1)\.(8|10|12|13|14)\.(\d\d?)(_\d+)?(-patch\d+)?$").ok()?;
+ let re = Regex::new(r"^(1)\.(8|10|12|13|14)\.(\d\d?)(_\d+)?(-(patch)?\d+)?$").ok()?;
33
let captures = re.captures(s)?;
34
Some(Self {
35
major: captures.get(1).and_then(|c| c.as_str().parse::<u8>().ok())?,
0 commit comments