Skip to content

Commit 3ed33b5

Browse files
authored
Merge pull request #199 from theduke/patch-1
Allow 'latest' alias for most recent crate version
2 parents 2e5f6a5 + 3556259 commit 3ed33b5

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)