diff options
author | zongyu <zzy2529420793@gmail.com> | 2020-06-15 09:37:30 +0800 |
---|---|---|
committer | zongyu <zzy2529420793@gmail.com> | 2020-07-06 17:48:27 +0800 |
commit | 21791ad72a6db7e9f809df55a74b52746dad801a (patch) | |
tree | 55a6714eefa18ef0ccfa72f19fcc3fcd5bdc71f7 /src | |
parent | replace SRC_URI in tree.sh with the new domain of maven-central (diff) | |
download | java-ebuilder-21791ad72a6db7e9f809df55a74b52746dad801a.tar.gz java-ebuilder-21791ad72a6db7e9f809df55a74b52746dad801a.tar.bz2 java-ebuilder-21791ad72a6db7e9f809df55a74b52746dad801a.zip |
modify PATTERN_VERSION_RANGE to match things like "[3.0, )"
Signed-off-by: zongyu <zzy2529420793@gmail.com>
Diffstat (limited to 'src')
-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 1de54e1..26b06b9 100644 --- a/src/main/java/org/gentoo/java/ebuilder/portage/MavenVersion.java +++ b/src/main/java/org/gentoo/java/ebuilder/portage/MavenVersion.java @@ -19,7 +19,7 @@ public class MavenVersion implements Comparable<MavenVersion> { * Pattern for parsing maven version range. */ private static final Pattern PATTERN_VERSION_RANGE - = Pattern.compile("\\[.*, ?(.*?)\\]"); + = Pattern.compile("[\\[\\(](.*), ?(.*?)[\\]\\)]"); /** * Incremental version number. */ |