We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d1fe3e commit 68c5991Copy full SHA for 68c5991
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