summaryrefslogtreecommitdiff
path: root/news/nzbhydra2/files/nzbhydra2wrapper.py.in
diff options
context:
space:
mode:
Diffstat (limited to 'news/nzbhydra2/files/nzbhydra2wrapper.py.in')
-rw-r--r--news/nzbhydra2/files/nzbhydra2wrapper.py.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/news/nzbhydra2/files/nzbhydra2wrapper.py.in b/news/nzbhydra2/files/nzbhydra2wrapper.py.in
index ea28452b407e..d4d6e83da834 100644
--- a/news/nzbhydra2/files/nzbhydra2wrapper.py.in
+++ b/news/nzbhydra2/files/nzbhydra2wrapper.py.in
@@ -490,7 +490,7 @@ def getJavaVersion(javaExecutable):
if len(lines) == 0:
raise Exception("Unable to get output from call to java -version")
versionLine = lines[0].replace("\n", "").replace("\r", "")
- match = re.match('(java|openjdk) version "(?P<major>\d+)(\.(?P<minor>\d+)\.(?P<patch>\d)+[\-_\w]*)?".*', versionLine)
+ match = re.match('(java|openjdk) version "(?P<major>\d+)((\.(?P<minor>\d+)\.(?P<patch>\d)+)?[\-_\w]*)?".*', versionLine)
if match is None:
raise Exception("Unable to determine java version from string " + lines[0])
javaMajor = int(match.group("major"))