Skip to content

Commit

Permalink
Ah fuck that regex wasn't right either
Browse files Browse the repository at this point in the history
  • Loading branch information
Scotsguy committed Feb 16, 2020
1 parent a1b8bed commit de4f0d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parsers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ fn multimc_in_onedrive_managed_folder(log: &str) -> Option<(&str, String)> {
fn major_java_version(log: &str) -> Option<(&str, String)> {
lazy_static! {
static ref RE: Regex =
Regex::new(r"Java is version (1.)??(?P<ver>[1-9][0-9]?)+\..+,").unwrap();
Regex::new(r"Java is version (1.)??(?P<ver>[6-9]|[1-9][0-9])+\..+,").unwrap();
}
match RE.captures(log) {
Some(capture) if capture.name("ver")?.as_str() == "8" => None,
Expand Down

0 comments on commit de4f0d8

Please sign in to comment.