forked from didirus/AstralRinth
fix maven filters for versions with dashes (#725)
Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
d92272ffa0
commit
f1ff88f452
@@ -191,7 +191,7 @@ async fn find_version(
|
||||
.partition::<Vec<_>, _>(|el| db_loaders.contains(el));
|
||||
|
||||
let matched = all_versions
|
||||
.into_iter()
|
||||
.iter()
|
||||
.filter(|x| {
|
||||
let mut bool = x.inner.version_number == vnumber;
|
||||
|
||||
@@ -206,7 +206,7 @@ async fn find_version(
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
Ok(matched.get(0).cloned())
|
||||
Ok(matched.get(0).or_else(|| exact_matches.get(0)).copied().cloned())
|
||||
}
|
||||
|
||||
fn find_file<'a>(
|
||||
|
||||
Reference in New Issue
Block a user