UserNameSuggester suggests names with trailing underscores


(Joe Seyfried) #1

I ran into several user errors: ["Username must end with a letter or number"] because UserNameSuggester seems to be oblivious to this restriction. We should introduce something like

name[-1,1] =~ /[^A-Za-z0-9]/

and replace accordingly (how?).

(Jeff Atwood) #2

Yes, @techapj and @sam are aware that the username suggester now has a lot of bugs as a result of the rules @sam changed to relax username rules.

(Arpit Jalan) #3

Trailing underscore in username is now allowed:

However UserNameSuggester still suggests usernames with a sequence of 2 or more special chars (like arpit__jalan) which is not valid. I am working on a fix for that. Fixed:

Mentiong usernames with trailing underscore does not work
(Arpit Jalan) #4