Opened 7 years ago

Last modified 5 years ago

#28694 closed Cleanup/optimization

django.utils.text.slugify Django slugify correction — at Version 1

Reported by: Elinaldo do Nascimento Monteiro Owned by: nobody
Component: Utilities Version: dev
Severity: Normal Keywords: slugify, util
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Elinaldo do Nascimento Monteiro)

Bug generation slug

Example:

from django.utils import text
text.slugify("___This is a test ---")
output: ___this-is-a-test-

Improvement after correction

from django.utils import text
text.slugify("___This is a test ---")
output: this-is-a-test

Fix PR: https://github.com/django/django/pull/8733

Change History (1)

comment:1 by Elinaldo do Nascimento Monteiro, 7 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top