Skip to content

fix: collapse repeated whitespace in usernames#36

Open
Prajjwaltripathi20 wants to merge 1 commit into
marandaneto:mainfrom
Prajjwaltripathi20:fix-username-whitespace
Open

fix: collapse repeated whitespace in usernames#36
Prajjwaltripathi20 wants to merge 1 commit into
marandaneto:mainfrom
Prajjwaltripathi20:fix-username-whitespace

Conversation

@Prajjwaltripathi20

Copy link
Copy Markdown

Fixes issue #27 by improving username normalization to collapse repeated whitespace into a single separator.

Changes

  • Trim leading and trailing whitespace.
  • Convert usernames to lowercase.
  • Replace consecutive whitespace with a single hyphen.

Verification

  • John Smithjohn-smith
  • Alice Cooper alice-cooper
  • Bobbob

Fixes #27

@Prajjwaltripathi20

Copy link
Copy Markdown
Author

I've submitted a PR that fixes this issue by collapsing repeated whitespace during username normalization.

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.

Normalized usernames keep repeated whitespace

1 participant