Closed michael-lumley closed 2 years ago
Seems like a duplicate of https://github.com/blakeembrey/change-case/issues/96? Since this works in a standard browser and tests I’m inclined to leave it as is.
Unfortunately, this does not work for me in the browser...
Latest chrome version...
FWIW, I have confirmed that the fix is as simple as enclosing the characters in double quotes...
Based on your screenshot that’s incorrect encoding and not related to this library. You can compare with the source code if you want, but it’s a different character entirely. You can also see the correct character in your original post.
If you think it must use quotes you’ll have to file an issue with Prettier since it’s auto-formatted and the formatting removes the quotes.
For posterity, this required importing the script with charset="UTF-8"
in the import tag. See more here: https://stackoverflow.com/questions/49064060/unicode-characters-not-showed-when-bundling-and-deploying-react-app-with-webpack
This segment of code from
lower-case
...Throws an
Unexpected Token
error for me on the "İ" character. I suspect it needs to be wrapped in "". My workaround for this is deleting all of the keys of SUPPORTED_LOCALE, such thatSUPPORTED_LOCALE = {}
which works, but gets overwritten with the original every time I update one of my packages. Would love to get this corrected...