Change urlsafe to ascii also when actually slugifying

This commit is contained in:
Jussi Kinnula 2016-03-29 09:46:42 +03:00
parent 487631e935
commit 764a2c1b39
1 changed files with 2 additions and 2 deletions

View File

@ -197,11 +197,11 @@ module Jekyll
# "._~!$&'()+,;=@" is human readable (not URI-escaped) in URL
# and is allowed in both extN and NTFS.
SLUGIFY_PRETTY_REGEXP
when 'urlsafe'
when 'ascii'
# For web servers not being able to handle Unicode, the safe
# method is to ditch anything else but latin letters and numeric
# digits.
SLUGIFY_URLSAFE_REGEXP
SLUGIFY_ASCII_REGEXP
end
# Strip according to the mode