Skip to content

Question: Why are custom replacements ran twice? #119

Description

@jdevera

I noticed this block

     if replacements:
        for old, new in replacements:
            text = text.replace(old, new)

appears twice in slugify. Why is that? Would it not make sense to have some pre-replacements and post-replacements instead?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:questionA question about the library or its code

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions