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

Support for CJK characters. #377

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kimdwkimdw
Copy link

Many asian IRC servers support CJK characters in nicknames.

From RFC2812(https://tools.ietf.org/html/rfc2812#section-2.3.1), nickname should be

nickname   =  ( letter / special ) *8( letter / digit / special / "-" )
letter     =  %x41-5A / %x61-7A       ; A-Z / a-z
digit      =  %x30-39                 ; 0-9 
hexdigit   =  digit / "A" / "B" / "C" / "D" / "E" / "F"
special    =  %x5B-60 / %x7B-7D
                 ; "[", "]", "\", "`", "_", "^", "{", "|", "}"

But, I think RFC2812 is too old, and it should support other unicode characters.

I found issue #104 closed several years ago. @outsideris reported it.

I put the regexp generated from http://apps.timwhitlock.info/js/regex#, it contains CJK(Chinese, Japanese, Korean) regexp.

@outsideris
Copy link

👍

@simnalamburt
Copy link

+1 For this.

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.

3 participants