mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Don't allow empty extension name
This commit is contained in:
parent
aa7d0f4a57
commit
36ef23b24e
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ public record GeyserExtensionDescription(@NonNull String name,
|
|||
@NonNull List<String> authors) implements ExtensionDescription {
|
||||
|
||||
private static final Yaml YAML = new Yaml(new CustomClassLoaderConstructor(Source.class.getClassLoader()));
|
||||
public static final Pattern NAME_PATTERN = Pattern.compile("^[A-Za-z_.-]*$");
|
||||
public static final Pattern NAME_PATTERN = Pattern.compile("^[A-Za-z_.-]+$");
|
||||
public static final Pattern API_VERSION_PATTERN = Pattern.compile("^\\d+\\.\\d+\\.\\d+$");
|
||||
|
||||
@NonNull
|
||||
|
|
Loading…
Reference in a new issue