Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ assert slugify("C'est déjà l'été.", algorithm='modern') == 'c-est-deja-l-ete
assert slugify('影師嗎', backend='text-unidecode', algorithm='modern') == 'ying-shi-ma'
assert slugify('影師嗎', allow_unicode=True, algorithm='modern') == '影師嗎'

# Truncate long slugs with max_length.
assert slugify('Hello, world!', max_length=8) == 'hello-wo'

# Calling slugify() without algorithm uses the legacy pipeline (the old default),
# kept unchanged for backward compatibility.
assert slugify("C'est déjà l'été.") == 'c-est-deja-l-ete'
Expand Down
Loading