diff --git a/pontos/version/commands/_java.py b/pontos/version/commands/_java.py index e3f03e890..4eb30bbc8 100644 --- a/pontos/version/commands/_java.py +++ b/pontos/version/commands/_java.py @@ -24,10 +24,12 @@ from ..errors import VersionError from ..version import Version, VersionUpdate -VERSION_PATTERN = (r"^(?P
.*[^\d])" - r"(?P\d+\.\d+\.\d+" - r"(-?([ab]|rc|alpha|beta)\d+(.dev\d+)?)?)" - r"(?P .*$)") +VERSION_PATTERN = ( + r"^(?P .*[^\d])" + r"(?P\d+\.\d+\.\d+" + r"(-?([ab]|rc|alpha|beta)\d+(.dev\d+)?)?)" + r"(?P .*$)" +) # This class is used for Java Version command(s)