diff options
author | 2020-06-15 09:45:56 +0800 | |
---|---|---|
committer | 2020-07-06 17:48:27 +0800 | |
commit | 8dbb7efca5167ec4dd00da315582af83cae445b8 (patch) | |
tree | fd302e782ecf5ac0de198b987a340be969eca366 | |
parent | prevent java-ebuilder from writing "JAVA_SRC_DIR" (diff) | |
download | java-ebuilder-8dbb7efca5167ec4dd00da315582af83cae445b8.tar.gz java-ebuilder-8dbb7efca5167ec4dd00da315582af83cae445b8.tar.bz2 java-ebuilder-8dbb7efca5167ec4dd00da315582af83cae445b8.zip |
modify PATTERN_VERSION to match things like "r4"
Signed-off-by: zongyu <zzy2529420793@gmail.com>
-rw-r--r-- | src/main/java/org/gentoo/java/ebuilder/portage/MavenVersion.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/gentoo/java/ebuilder/portage/MavenVersion.java b/src/main/java/org/gentoo/java/ebuilder/portage/MavenVersion.java index 26b06b9..71da8a6 100644 --- a/src/main/java/org/gentoo/java/ebuilder/portage/MavenVersion.java +++ b/src/main/java/org/gentoo/java/ebuilder/portage/MavenVersion.java @@ -14,7 +14,7 @@ public class MavenVersion implements Comparable<MavenVersion> { * Pattern for parsing maven version number. */ private static final Pattern PATTERN_VERSION = Pattern.compile( - "^v?(\\d+)(?:\\.(\\d+))?(?:(?:\\.|b|beta)(\\d+))?(?:[\\.-](.*))?$"); + "^[vr]?(\\d+)(?:\\.(\\d+))?(?:(?:\\.|b|beta)(\\d+))?(?:[\\.-]?(.*))?$"); /** * Pattern for parsing maven version range. */ |