RepoPilot

What unicode/non-Latin test cases are covered?

About sindresorhus/slugify · 2 messages · last activity 6/8/2026

Question

What unicode/non-Latin test cases are covered?

RepoPilot

I don't have access to the test files in the indexed repository data provided. The index has minimal coverage (8 of 8 eligible files), and the test cases aren't included in what was retrieved.

However, based on the README examples (which are data), I can tell you about unicode/non-Latin test cases that are documented:

  1. Emoji: slugify('I ♥ Dogs')'i-love-dogs' (heart symbol)
  2. Accented Latin: slugify('Déjà Vu!')'deja-vu' (French accents)
  3. Cyrillic (Russian): slugify('я люблю единорогов')'ya-lyublyu-edinorogov'
  4. Emoji symbols: The default customReplacements includes ['🦄', ' unicorn '] and ['♥', ' love ']

The README also mentions the library "handles most major languages, including German (umlauts), Vietnamese, Arabic, Russian, and more" (referencing the transliterate library it uses).

To see the complete test suite with all edge cases, you'd need to examine the test files directly in the repository. I'd recommend checking the test or tests directory in the actual repository.

FOLLOW_UPS:

  • What's the relationship between slugify and transliterate?
  • How does the decamelize option work internally?
  • Can custom replacements override default emoji mappings?

Want to ask your own question?

Open chat for sindresorhus/slugify

Public Q&A. Generated by RepoPilot from the actual source of sindresorhus/slugify. AI answers can be incomplete or stale — verify before relying on them.