Skip to content

Commit

Permalink
Fix version regex. (smithy-lang#2364)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeMathWalker committed Feb 14, 2023
1 parent aa07854 commit ca3ef20
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -28,7 +28,7 @@ pub async fn subcommand_upgrade_runtime_crates_version(
let fs = Fs::Real;
let gradle_properties = read_gradle_properties(fs, &args.gradle_properties_path).await?;
let version_regex =
Regex::new(r"(?P<field>smithy\.rs\.runtime\.crate\.version=)(?P<version>\d+\.\d+\.\d+-.*)")
Regex::new(r"(?P<field>smithy\.rs\.runtime\.crate\.version=)(?P<version>\d+\.\d+\.\d+.*)")
.unwrap();
let current_version = version_regex.captures(&gradle_properties).ok_or_else(|| {
anyhow!(
Expand Down

0 comments on commit ca3ef20

Please sign in to comment.