node-irc icon indicating copy to clipboard operation
node-irc copied to clipboard

Support for CJK characters.

Open kimdwkimdw opened this issue 9 years ago • 2 comments

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.

kimdwkimdw avatar Jun 14 '15 17:06 kimdwkimdw

:+1:

outsideris avatar Jun 24 '15 10:06 outsideris

+1 For this.

simnalamburt avatar Mar 25 '16 19:03 simnalamburt