File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
plugin-development/src/main/java/org/spongepowered/gradle/plugin Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 42
42
public class SpongeVersioningMetadataRule implements ComponentMetadataRule {
43
43
// <mc version>-<API target>-<RC<BUILD> // development
44
44
// <mc version>-<API target> // stable
45
- private static final Pattern SPONGE_IMPL_VERSION = Pattern .compile ("(?<mc>[^-]+)-(?<api>[\\ d.]+)(?:-RC(?<rc>\\ d+))?" );
45
+ private static final Pattern SPONGE_IMPL_VERSION = Pattern .compile ("(?<mc>[\\ d+.]+-(?:pre|rc)[ \\ d]+|[ ^-]+)-(?<api>[\\ d.]+)(?:-RC(?<rc>\\ d+))?" );
46
46
private static final List <String > STATUS_SCHEME = Collections .unmodifiableList (Arrays .asList ("rc" , "release" ));
47
47
48
48
public static final Attribute <String > MINECRAFT_TARGET = Attribute .of ("org.spongepowered.minecraft-target" , String .class );
You can’t perform that action at this time.
0 commit comments