Opened 6 weeks ago

Last modified 5 weeks ago

#28694 assigned Cleanup/optimization

Make django.utils.text.slugify() remove redundant dashes and underscores

Reported by: Elinaldo do Nascimento Monteiro Owned by: Elinaldo do Nascimento Monteiro
Component: Utilities Version: master
Severity: Normal Keywords: slugify, util
Cc: Triage Stage: Accepted
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

PR

Change History (5)

comment:1 Changed 6 weeks ago by Elinaldo do Nascimento Monteiro

Description: modified (diff)

comment:2 Changed 6 weeks ago by Elinaldo do Nascimento Monteiro

Owner: changed from nobody to Elinaldo do Nascimento Monteiro
Status: newassigned

comment:3 Changed 6 weeks ago by Elinaldo do Nascimento Monteiro

Version: 1.11master

comment:4 Changed 6 weeks ago by Elinaldo do Nascimento Monteiro

Description: modified (diff)

comment:5 Changed 5 weeks ago by Tim Graham

Summary: django.utils.text.slugify Django slugify correctionMake django.utils.text.slugify() remove redundant dashes and underscores
Triage Stage: UnreviewedAccepted
Type: New featureCleanup/optimization
Note: See TracTickets for help on using tickets.
Back to Top