Skip to content

Commit

Permalink
Fix version regex
Browse files Browse the repository at this point in the history
The regex finds lot of stuff in the commit message that looks nothing
like a version. Escaping the various '.' should do it.
  • Loading branch information
hannobraun committed May 5, 2022
1 parent 0d847eb commit cfc9743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/release-operator/src/release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl Release {
let commit: String = cmd_lib::run_fun!(git log -n 1 "${sha}")?;

// A release commits need to contain a semver version number.
let version = Regex::new(r"(\d+.\d+.\d+)")?
let version = Regex::new(r"(\d+\.\d+\.\d+)")?
.find_iter(&commit)
.inspect(|version| {
log::info!(
Expand Down

0 comments on commit cfc9743

Please sign in to comment.