GP-3121 allow Ghidra Server usernames to start with a numeric digit

This commit is contained in:
ghidra1 2023-02-21 19:31:34 +00:00
parent 6f80f8bd3c
commit dd5bd32aad

View file

@ -752,7 +752,7 @@ public class UserManager {
* Regex: matches if the entire string is alpha, digit, ".", "-", "_", fwd or back slash.
*/
private static final Pattern VALID_USERNAME_REGEX =
Pattern.compile("[a-zA-Z][a-zA-Z0-9.\\-_/\\\\]*");
Pattern.compile("[a-zA-Z0-9][a-zA-Z0-9.\\-_/\\\\]*");
/**
* Ensures a name only contains valid characters and meets length limitations.