镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

"normalize" method works weird #779

Closed

Description

@VaJoy
var n1 = '\u01D1'.normalize() ; 
var n2 = '\u004F\u030C'.normalize();
console.log(n1===n2);

this print "true" in Chrome, but print "false" in iojs.

Activity

  1. targos commented on Feb 10, 2015

    @targos
    Member

    This is because Intl support is not enabled by default.
    If you compile with ICU support, your example will work correctly.

  2. targos commented on Feb 10, 2015

    @targos
    Member

    Without Intl, String.prototype.normalize does nothing

  3. VaJoy commented on Feb 10, 2015

    @VaJoy
    Author

    thx a lot :) @targos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions