Looking at normalize-weirdly: underscores are valid nick characters, so I think this may cause bad behavior for users with underscore-containing nicks? The comments mention that the substitutions are based on actual failed messages, but I think perhaps the diagnostic of underscores is wrong? (Also, many IRC clients deal with a nick being already taken by prepending or appending underscore(s), so perhaps that’s where you saw nicks with underscores being “wrong”?)
A valid PCRE for valid nicks not including Unicode extensions is:
/\A[a-z_\-\[\]\\^{}|`][a-z0-9_\-\[\]\\^{}|`]*\z/i
And the Unicode extensions (which should be pretty easy to add in Raku) are shown here.
Looking at
normalize-weirdly
: underscores are valid nick characters, so I think this may cause bad behavior for users with underscore-containing nicks? The comments mention that the substitutions are based on actual failed messages, but I think perhaps the diagnostic of underscores is wrong? (Also, many IRC clients deal with a nick being already taken by prepending or appending underscore(s), so perhaps that’s where you saw nicks with underscores being “wrong”?)A valid PCRE for valid nicks not including Unicode extensions is:
And the Unicode extensions (which should be pretty easy to add in Raku) are shown here.