diff --git a/slugify b/slugify index 4fd2724..7ebf57d 100755 --- a/slugify +++ b/slugify @@ -25,6 +25,10 @@ to_slug() { # Forcing the POSIX local so alnum is only 0-9A-Za-z export LANG=POSIX export LC_ALL=POSIX + #replace ' with nothing + sed -e "s/[\']//g" | + #transliterate special chars + iconv -f UTF-8 -t ASCII//TRANSLIT | # Keep only alphanumeric value sed -e 's/[^[:alnum:]]/-/g' | # Keep only one dash if there is multiple one consecutively