From 53ad6e5ad6470814eddcbb7892e517a8422e4926 Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Wed, 8 May 2024 21:53:52 +1000 Subject: [PATCH] Tweek pyenv version detection on windows --- native_locator/src/pyenv.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native_locator/src/pyenv.rs b/native_locator/src/pyenv.rs index 3b083d30d8ce..15969b321464 100644 --- a/native_locator/src/pyenv.rs +++ b/native_locator/src/pyenv.rs @@ -86,8 +86,8 @@ fn get_pyenv_version(folder_name: String) -> Option { None => None, }, None => { - // Alpha Versions = like 3.10.0a3 - let python_regex = Regex::new(r"^(\d+\.\d+.\d+a\d+)").unwrap(); + // Alpha, rc Versions = like 3.10.0a3 + let python_regex = Regex::new(r"^(\d+\.\d+.\d+\w\d+)").unwrap(); match python_regex.captures(&folder_name) { Some(captures) => match captures.get(1) { Some(version) => Some(version.as_str().to_string()),