Skip to content

Commit

Permalink
fix issue Sandertv#280
Browse files Browse the repository at this point in the history
  • Loading branch information
FDUTCH committed Jan 16, 2025
1 parent 9afea8b commit 09a4f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minecraft/protocol/login/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type IdentityData struct {
// checkUsername is used to check if a username is valid according to the Microsoft specification: "You can
// use up to 15 characters: Aa-Zz, 0-9, and single spaces. It cannot start with a number and cannot start or
// end with a space."
var checkUsername = regexp.MustCompile("[A-Za-z0-9 ]").MatchString
var checkUsername = regexp.MustCompile("[A-Za-z0-9 \\p{L}]").MatchString

// Validate validates the identity data. It returns an error if any data contained in the IdentityData is
// invalid.
Expand Down

0 comments on commit 09a4f4a

Please sign in to comment.