Commit 3b5490ff7cd522c453ddd36376e80d4431d0ac71
Committed by
Antonio Terceiro
1 parent
78366cac
Exists in
master
and in
29 other branches
ActionItem853: fixed
Showing
2 changed files
with
5 additions
and
1 deletions
Show diff stats
lib/noosfero/core_ext/string.rb
... | ... | @@ -37,7 +37,7 @@ class String |
37 | 37 | end |
38 | 38 | |
39 | 39 | def to_slug |
40 | - transliterate.downcase.gsub(/^\d+/,'').gsub( /[^a-z0-9~\s:;+=_.-]/, '').gsub(/[\s:;+=_-]+/, '-').gsub(/-$/, '').gsub(/^-/, '').to_s | |
40 | + transliterate.downcase.gsub(/^\d+/,'').gsub( /[^a-z0-9~\s:;+=_."'`-]/, '').gsub(/[\s:;+=_"'`-]+/, '-').gsub(/-$/, '').gsub(/^-/, '').to_s | |
41 | 41 | end |
42 | 42 | |
43 | 43 | end | ... | ... |
test/unit/slug_test.rb