Created
March 3, 2023 07:41
-
-
Save tohagan/2b3cd587a19e37046fbc7881272c108c to your computer and use it in GitHub Desktop.
Convert diacritic / accented letters to non-accented (for search, code etc)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const removeAccents = (name) => name.normalize('NFD').replace(/[\u0300-\u036f]/g, ''); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment