Commit c9fe94b90d35701fe13b7abeaa7f0b8f548f2ec2
1 parent
8512674f
Exists in
master
and in
29 other branches
ActionItem280: removing regression from to_slug
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1687 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
3 additions
and
3 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