blakeembrey / change-case

Convert strings between camelCase, PascalCase, Capital Case, snake_case and more
MIT License
2.21k stars 92 forks source link

Support unicode regex #296

Closed romansj closed 9 months ago

romansj commented 1 year ago

Hey,

Raycast app extension Change Case depends on your library but it doesn't support Unicode characters.
This would fix #4841

Replaced a-z and A-Z matchers with \p{Ll} and \p{Lu}, respectively. Updated README to mention this syntax and link to regular-expressions.info doc page.

derekblank commented 10 months ago

+1 @blakeembrey This would be a welcome change to merge as it updates the regex matchers to support more Unicode characters.change-case is currently used in the WordPress core editor and breaks for languages with diacritics (see example).

blakeembrey commented 9 months ago

Thanks for the contribution!