public
Fork of norman/friendly_id
Description: FriendlyId is a plugin for Ruby on Rails which allows you to work with human-friendly strings as well as numeric ids for ActiveRecords.
Homepage: http://randomba.org
Clone URL: git://github.com/alistairholt/friendly_id.git
Added 'straight' apostrophe, opening 'curly' apostrophe and 'curly' quotes 
stripping to Slug::normalize
alistairholt (author)
Wed Jul 02 03:10:32 -0700 2008
commit  a2a6a784331cc733318d69bdd5c486fe08640c16
tree    6caae425f4ed58458203227c344579890bd4c954
parent  38f23b8d6507cdd5892fece9787953a5093868d6
...
40
41
42
43
 
44
45
46
...
40
41
42
 
43
44
45
46
0
@@ -40,7 +40,7 @@ class Slug < ActiveRecord::Base
0
   #
0
   def self.normalize(slug_text)
0
     s = slug_text.clone
0
- s.gsub!(/[\?â€",.;:]/, '')
0
+ s.gsub!(/[\?‘’'“â€",.;:]/, '')
0
     s.gsub!(/\W+/, ' ')
0
     s.strip!
0
     s.downcase!

Comments

    No one has commented yet.