Remove restriction on dot character in Discord name validation
This change allows Discord names to include dots anywhere within the name, increasing flexibility for valid usernames. The previous regex pattern incorrectly restricted dots, affecting valid user entries.
This commit is contained in:
parent
9e0a33e782
commit
5e564fe9a7
|
|
@ -40,7 +40,7 @@ public class StaffAppFormData extends Form {
|
|||
|
||||
@NotEmpty(message = "Discord name is required")
|
||||
@Length(min = 2, max = 32, message = "Discord name should be between 2 and 32 characters")
|
||||
@Pattern(regexp = "^(?!.*\\..)([a-z0-9._]{2,32})$", message = "Please enter a valid Discord name")
|
||||
@Pattern(regexp = "^([a-z0-9._]{2,32})$", message = "Please enter a valid Discord name")
|
||||
public final String discord;
|
||||
|
||||
@NotEmpty(message = "An answer is required")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user