diff options
author | Juanito Fatas <katehuang0320@gmail.com> | 2014-05-22 16:14:31 +0800 |
---|---|---|
committer | Juanito Fatas <katehuang0320@gmail.com> | 2014-05-22 16:14:31 +0800 |
commit | 699babe8e30e9e2e9345c3117e404dff1e62c049 (patch) | |
tree | 2fd1e6050f3a770c749f2c4ac7a7d135851afbd1 /guides/rails_guides | |
parent | 6ffe92939c024222540c97046b1c1614e69f458b (diff) | |
download | rails-699babe8e30e9e2e9345c3117e404dff1e62c049.tar.gz rails-699babe8e30e9e2e9345c3117e404dff1e62c049.tar.bz2 rails-699babe8e30e9e2e9345c3117e404dff1e62c049.zip |
Do not gsub non ASCII characters in header anchor.
Diffstat (limited to 'guides/rails_guides')
-rw-r--r-- | guides/rails_guides/markdown.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/guides/rails_guides/markdown.rb b/guides/rails_guides/markdown.rb index dbf7ff311d..1ea18ba9f5 100644 --- a/guides/rails_guides/markdown.rb +++ b/guides/rails_guides/markdown.rb @@ -47,8 +47,7 @@ module RailsGuides end def dom_id_text(text) - text.downcase.gsub(/\?/, '-questionmark').gsub(/!/, '-bang').gsub(/[^a-z0-9]+/, ' ') - .strip.gsub(/\s+/, '-') + text.downcase.gsub(/\?/, '-questionmark').gsub(/!/, '-bang').gsub(/\s+/, '-') end def engine |