Skip to content

Commit

Permalink
extend java version regex
Browse files Browse the repository at this point in the history
  • Loading branch information
JsLth committed Sep 18, 2024
1 parent b5c860d commit 4f29d3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/jar.R
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,9 @@ check_jdk_version <- function(verbose) {
version <- get_java_version(verbose)
version <- regex_match(
version,
"(?<=openjdk|java version \\\")[0-9]{1,2}(?=\\.)",
"(?<=(openjdk|java) (version \\\")?)[0-9]{1,2}(?=\\.)",
perl = TRUE
)[[1]]
)[[1]][1]

if (!minimum_version(version, "17")) {
url <- "https://www.oracle.com/de/java/technologies/downloads/"
Expand Down

0 comments on commit 4f29d3f

Please sign in to comment.