(output: &str)
| 337 | } |
| 338 | |
| 339 | fn parse_java_version(output: &str) -> Result<Option<String>, Error> { |
| 340 | let re = Regex::new(r#"version\s+\"([^\"]+)\""#)?; |
| 341 | Ok(re |
| 342 | .captures(output) |
| 343 | .and_then(|captures| captures.get(1).map(|m| m.as_str().to_string()))) |
| 344 | } |
| 345 | |
| 346 | fn is_supported_java_version(version: &str) -> bool { |
| 347 | parse_java_major(version) |
no test coverage detected