Skip to content

Commit

Permalink
More Forge versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Scotsguy committed Jan 9, 2020
1 parent e30d4d0 commit 5574724
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/parsers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,17 @@ fn server_java(log: &str) -> Option<(&str, String)> {
fn buildsystem_forge(log: &str) -> Option<(&str, String)> {
lazy_static! {
static ref RE: Regex =
Regex::new(r"net\.minecraftforge/(?P<major>2(5|6|7|8))\.[0-9]+\.[0-9]+\.json").unwrap();
Regex::new(r"net\.minecraftforge/(?P<major>(2[5-9]|30))\.[0-9]+\.[0-9]+\.json")
.unwrap();
}
if let Some(capture) = RE.captures(log) {
let mc_version = match capture.name("major")?.as_str() {
"25" => "1.13.2",
"26" => "1.14.2",
"27" => "1.14.3",
"28" => "1.14.4",
"29" => "1.15",
"30" => "1.15.1",
_ => "<unknown version>",
};

Expand Down

0 comments on commit 5574724

Please sign in to comment.