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

Feature request: Unicode normalization #1289

Closed
noinkling opened this Issue Sep 2, 2017 · 1 comment

Comments

Projects
None yet
3 participants
@noinkling
Contributor

noinkling commented Sep 2, 2017

When dealing with strings that may have characters outside the ASCII range, String.prototype.normalize() often becomes an essential part of the processing/validation pipeline.

For this reason it would be nice to have a .normalize() validator/converter on strings, akin to .trim()/.uppercase()/.lowercase(). It would optionally accept a normalization form just like the original method, defaulting to NFC otherwise.

I wasn't going to open an issue until I had a PR ready, but I don't know how long that will take, so I thought I'd drop the request here in the meantime just in case someone else feels like having a go.

For tests the smartest thing to do is probably to have a string where the source and all 4 normalization forms are different from each other.

@Marsup

This comment has been minimized.

Member

Marsup commented Sep 20, 2017

Closed by #1291.

@Marsup Marsup closed this Sep 20, 2017

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