Skip to content

Commit

Permalink
fix username regex
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercoms committed Aug 29, 2021
1 parent 24c394c commit e540641
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

public final class LoginStartHandler implements MessageHandler<GlowSession, LoginStartMessage> {

private static final Pattern usernamePattern = Pattern.compile("[a-zA-Z0-9_]+");
private static final Pattern usernamePattern = Pattern.compile("^[a-zA-Z0-9_]+$");

@Override
public void handle(GlowSession session, LoginStartMessage message) {
Expand Down

0 comments on commit e540641

Please sign in to comment.