mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-01 22:14:01 +03:00
Update VerifyHelper.java
The minimum username length is three
This commit is contained in:
parent
ed7a09d223
commit
315bdfcd7c
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ public final class VerifyHelper {
|
|||
@LauncherAPI
|
||||
public static final Predicate<String> NOT_EMPTY = s -> !s.isEmpty();
|
||||
@LauncherAPI
|
||||
public static final Pattern USERNAME_PATTERN = Pattern.compile(Boolean.parseBoolean(System.getProperty("username.russian", "true")) ? "[a-zA-Zа-яА-Я0-9_.\\-]{1,16}" : "[a-zA-Z0-9-_\\\\.]{1,16}");
|
||||
public static final Pattern USERNAME_PATTERN = Pattern.compile(Boolean.parseBoolean(System.getProperty("username.russian", "true")) ? "[a-zA-Zа-яА-Я0-9_.\\-]{3,16}" : "[a-zA-Z0-9-_\\\\.]{3,16}");
|
||||
private static final Pattern SERVERID_PATTERN = Pattern.compile("-?[0-9a-f]{1,40}");
|
||||
|
||||
@LauncherAPI
|
||||
|
|
Loading…
Reference in a new issue