rsl / stringex

Some [hopefully] useful extensions to Ruby’s String class. It is made up of three libraries: ActsAsUrl [permalink solution with better character translation], Unidecoder [Unicode to Ascii transliteration], and StringExtensions [miscellaneous helper methods for the String class].
MIT License
984 stars 158 forks source link

Feature: is it posible to avoid "dot", "slash" words in url? #186

Open GoodJob opened 8 years ago

GoodJob commented 8 years ago

Is it posible to turn of conversation of symbols to words in url? Like an example by default stringex is converting "."=>"dot", "/"=>"slash" and etc...

Thank you!!

bnymn commented 7 years ago

Same issue here. I have triple dots in my title like ..., it is converted to dot-dot-dot

rsl commented 7 years ago

this is by design. i'm open patches though optionally changing such behavior.

GoodJob commented 7 years ago

thanks, great news! :) 👍

gpakosz commented 7 years ago

@rsl where should one start? How do you imagine this optional behavior should be configured?