Skip to content

Feature request: Unicode normalization #1289

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

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

Feature request: Unicode normalization #1289

noinkling opened this issue Sep 2, 2017 · 1 comment
Assignees
Labels
feature New functionality or improvement
Milestone

Comments

@noinkling
Copy link
Contributor

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
Copy link
Collaborator

Marsup commented Sep 20, 2017

Closed by #1291.

@Marsup Marsup closed this as completed Sep 20, 2017
@hueniverse hueniverse added feature New functionality or improvement and removed request labels Sep 19, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New functionality or improvement
Projects
None yet
Development

No branches or pull requests

4 participants