We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66afcf7 commit 3a9c04aCopy full SHA for 3a9c04a
native_locator/src/pyenv.rs
@@ -86,8 +86,8 @@ fn get_pyenv_version(folder_name: String) -> Option<String> {
86
None => None,
87
},
88
None => {
89
- // Alpha Versions = like 3.10.0a3
90
- 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();
91
match python_regex.captures(&folder_name) {
92
Some(captures) => match captures.get(1) {
93
Some(version) => Some(version.as_str().to_string()),
0 commit comments