Skip to content

Commit 3a9c04a

Browse files
authored
Tweek pyenv version detection on windows (#23383)
1 parent 66afcf7 commit 3a9c04a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

native_locator/src/pyenv.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ fn get_pyenv_version(folder_name: String) -> Option<String> {
8686
None => None,
8787
},
8888
None => {
89-
// Alpha Versions = like 3.10.0a3
90-
let python_regex = Regex::new(r"^(\d+\.\d+.\d+a\d+)").unwrap();
89+
// Alpha, rc Versions = like 3.10.0a3
90+
let python_regex = Regex::new(r"^(\d+\.\d+.\d+\w\d+)").unwrap();
9191
match python_regex.captures(&folder_name) {
9292
Some(captures) => match captures.get(1) {
9393
Some(version) => Some(version.as_str().to_string()),

0 commit comments

Comments
 (0)