Closed NumiLarsson closed 5 months ago
Open the branch in Web Editor • VS Code • Insiders
Open Preview
I'm a bit reluctant to this, as it would over-complicate that regex in order to cover an edge case which is - frankly - a bit of an anti-pattern. You shouldn't have property names containing "foreign" characters. Proper code identifiers (i.e. variables, properties, function names) should always be written in English. I perfectly understand your intention as my native language is Romanian and we use a lot of "foreign" characters. Moreover, I am actually very particular about using them to write prose correctly, but never in code.
Updated the regex in humanize to support some commonly used "foreign" characters, Latin-1-Supplement is sorted nicely with upper / lower case characters, so only did the basics that covers my use case, but it's possible to extend this support much longer.
See: https://symbl.cc/en/unicode-table/#latin-1-supplement
I added the characters: 00C0-00D6, 00D8-00DD (uppers) 00E0-00F6, 00F8-00FD (lowers)