Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 2b9f42f

Browse files
thatChadMtofi86
authored andcommitted
Update universalJavaApplicationStub
Tweak the java8pattern to accept more than just 1.[4-8].0 since I have an application that lists 1.4.2+ as the required version.
1 parent d2f781b commit 2b9f42f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/universalJavaApplicationStub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ function get_comparable_java_version() {
477477
################################################################################
478478
function is_valid_requirement_pattern() {
479479
local java_req=$1
480-
java8pattern='1\.[4-8](\.0)?(\.0_[0-9]+)?[*+]?'
480+
java8pattern='1\.[4-8](\.[0-9]+)?(\.0_[0-9]+)?[*+]?'
481481
java9pattern='(9|1[0-9])(-ea|[*+]|(\.[0-9]+){1,2}[*+]?)?'
482482
# test matches either old Java versioning scheme (up to 1.8) or new scheme (starting with 9)
483483
if [[ ${java_req} =~ ^(${java8pattern}|${java9pattern})$ ]]; then

0 commit comments

Comments
 (0)