File tree Expand file tree Collapse file tree
Essentials/src/main/java/com/earth2me/essentials/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ private static boolean isSupportedVersion(final BukkitVersion version) {
213213 }
214214
215215 public static final class BukkitVersion implements Comparable <BukkitVersion > {
216- private static final Pattern VERSION_PATTERN = Pattern .compile ("^(\\ d+)\\ .(\\ d+)\\ .?([0-9]*)?(?:-snapshot-(\\ d+))?(?:-pre-?(\\ d+))?(?:-rc-?(\\ d+))?(?:\\ .build\\ .(\\ d+)(?:-([a-z]+))?)?(?:-?R?([\\ d.]+))?(?:-SNAPSHOT)?" );
216+ private static final Pattern VERSION_PATTERN = Pattern .compile ("^(\\ d+)\\ .(\\ d+)\\ .?([0-9]*)?(?:-snapshot-(\\ d+))?(?:-pre-?(\\ d+))?(?:-rc-?(\\ d+))?(?:\\ .build\\ .(\\ d+)(?:-([a-z]+))?)?(?:-?R?([\\ d.]+))?(?:(?: \\ .local)? -SNAPSHOT)?" );
217217 private static final Pattern LEGACY_SNAPSHOT_PATTERN = Pattern .compile ("^(\\ d{2})w(\\ d{2})([a-z])(?:-?R?([\\ d.]+))?(?:-SNAPSHOT)?" );
218218
219219 private final int major ;
You can’t perform that action at this time.
0 commit comments