Commit 8f603bfd authored by Scott Abbey's avatar Scott Abbey

Fix regex for uppercase prerelease and build strings

parent 8e70dee2
......@@ -14,7 +14,7 @@ lazy_static! {
let minor = numeric_identifier;
let patch = numeric_identifier;
let letters_numbers_dash_dot = r"[.-A-Za-z0-9]+";
let letters_numbers_dash_dot = r"[-.A-Za-z0-9]+";
// This regex does not fully parse prereleases, just extracts the whole prerelease string.
// parse_version() will parse this further.
......@@ -38,6 +38,7 @@ lazy_static! {
patch,
pre,
build);
println!("{:?}", regex);
let regex = Regex::new(&regex);
// this unwrap is okay because everything above here is const, so this will never fail.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment