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

"normalize" method works weird #779

Closed
VaJoy opened this issue Feb 10, 2015 · 3 comments
Closed

"normalize" method works weird #779

VaJoy opened this issue Feb 10, 2015 · 3 comments

Comments

@VaJoy
Copy link

VaJoy commented Feb 10, 2015

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

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

@targos
Copy link
Member

targos commented Feb 10, 2015

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

@targos
Copy link
Member

targos commented Feb 10, 2015

Without Intl, String.prototype.normalize does nothing

@VaJoy
Copy link
Author

VaJoy commented Feb 10, 2015

thx a lot :) @targos

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

No branches or pull requests

2 participants