Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.0] SlugField: don't translate characters & remove special characters #3170

Merged
merged 1 commit into from May 2, 2020

Conversation

jmsche
Copy link
Contributor

@jmsche jmsche commented May 1, 2020

Follow-up of Javier's comment: #3164 (comment)

This PR:

  • extends (only once) the slugify() function to remove translated symbols (eg. "$" => "dollar")
  • uses the "lower" option of slugify instead of .toLowerCase()
  • allows only alphanumeric characters (and dashes) in the slug

Could supersede ec3c8da ?

@javiereguiluz javiereguiluz added this to the 3.x milestone May 2, 2020
@javiereguiluz
Copy link
Collaborator

Very nice improvements 👏 Thanks a lot!

@javiereguiluz javiereguiluz merged commit b4e8289 into EasyCorp:master May 2, 2020
@jmsche jmsche deleted the 3.0-slugify-improvements branch May 13, 2020 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants