Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue #280 #281

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

fix issue #280 #281

wants to merge 6 commits into from

Conversation

FDUTCH
Copy link

@FDUTCH FDUTCH commented Jan 16, 2025

No description provided.

@FDUTCH
Copy link
Author

FDUTCH commented Jan 16, 2025

Is it ok now?

// 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
// checkOfflineUsername is used to check if a username is valid for normal Minecraft client.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd mention here that it validates usernames for unauthenticated clients

Comment on lines 41 to 42
// // 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."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicated slashes here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants