Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom mapping fails for non-latin keys #122

Open
aziznatour opened this issue Aug 2, 2018 · 2 comments
Open

Custom mapping fails for non-latin keys #122

aziznatour opened this issue Aug 2, 2018 · 2 comments
Assignees

Comments

@aziznatour
Copy link

The following code should work, but does not:

getSlug("ديسكورد", {
   custom: {
      "ديسكورد": "discord"
   }
)};

Result: dyskwrd
Expected result: discord

@pid pid self-assigned this Sep 10, 2018
@kalligator
Copy link

kalligator commented Sep 12, 2021

Seems to be a persistent issue if the key is more than one non-latin characters, not just for custom mappings.

@kalligator
Copy link

I have fixed it as far as the custom mappings go, see PR #132 above.

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

No branches or pull requests

3 participants