Skip to content

Don't normalize stings, check for object instead#1

Merged
iamcco merged 1 commit intoiamcco:masterfrom
wordpress-mobile:fix/avoid-normalizing-strings
Feb 21, 2019
Merged

Don't normalize stings, check for object instead#1
iamcco merged 1 commit intoiamcco:masterfrom
wordpress-mobile:fix/avoid-normalizing-strings

Conversation

@hypest
Copy link
Copy Markdown

@hypest hypest commented Feb 21, 2019

Hello 👋

This PR adds a fix for the "argument does not match any normalization form" as seen in wordpress-mobile/gutenberg-mobile#617 (review).

It follows the same logic as in line 95 earlier in the same file, guard the call to n.normalize() with a check for type object.

h/t to @koke for spotting the bug.

@iamcco
Copy link
Copy Markdown
Owner

iamcco commented Feb 21, 2019

thanks

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

Successfully merging this pull request may close these issues.

2 participants