Skip to content

Commit 3556259

Browse files
author
theduke
authored
Allow 'latest' alias for most recent crate version
Allow "latest" as an additional URL alias (together with 'newest') for accesing the most recent crate version. Fixes #169
1 parent 8a31bf7 commit 3556259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/web/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ fn match_version(conn: &Connection, name: &str, version: Option<&str>) -> Option
232232
Err(_) => None,
233233
}
234234
})
235-
.map(|v| if v == "newest" { "*".to_owned() } else { v })
235+
.map(|v| if v == "newest" || v == "latest" { "*".to_owned() } else { v })
236236
.unwrap_or("*".to_string());
237237

238238
let versions = {

0 commit comments

Comments
 (0)