Skip to content
Browse files
  • Loading branch information
da2x committed Sep 8, 2015
1 parent 33db32f commit e4189f59b3eabedbcf71ca8b94b4179311a954a6
Showing 1 changed file with 2 additions and 2 deletions.
@@ -760,7 +760,7 @@ def slugify(value, force=False):
# This is the standard state of slugify, which actually does some work.
# It is the preferred style, especially for Western languages.
value = unicode_str(unidecode(value))
value = _slugify_strip_re.sub('', value, re.UNICODE).strip()
value = _slugify_strip_re.sub('', value, re.UNICODE).strip().lower()
return _slugify_hyphenate_re.sub('-', value, re.UNICODE)
# This is the “disarmed” state of slugify, which lets the user
@@ -775,7 +775,7 @@ def slugify(value, force=False):

for c in rc:
value = value.replace(c, '-')
return value.lower()
return value

def unslugify(value, discard_numbers=True):

0 comments on commit e4189f5

Please sign in to comment.