Commit 6af9be44 authored by Scott Abbey's avatar Scott Abbey

Trim version string

parent ae1b3359
......@@ -57,7 +57,7 @@ pub struct Version {
}
pub fn parse_version(version: &str) -> Result<Version, Box<Error>> {
let captures = match REGEX.captures(version) {
let captures = match REGEX.captures(version.trim()) {
Some(captures) => captures,
None => return Err(From::from("Version did not parse properly.")),
};
......
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