From e17b23db016c03801ade2666793b4a51583f3785 Mon Sep 17 00:00:00 2001 From: Ryan Bigg Date: Sat, 16 Jan 2010 10:42:04 +1000 Subject: Make guides generation work for Ruby 1.9.x Signed-off-by: Pratik Naik --- railties/guides/rails_guides/indexer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties/guides/rails_guides/indexer.rb') diff --git a/railties/guides/rails_guides/indexer.rb b/railties/guides/rails_guides/indexer.rb index 5b5ad3fee1..939404c85f 100644 --- a/railties/guides/rails_guides/indexer.rb +++ b/railties/guides/rails_guides/indexer.rb @@ -19,9 +19,9 @@ module RailsGuides level_hash = ActiveSupport::OrderedHash.new while !s.eos? - s.match?(/\h[0-9]\..*$/) + s.match?(/h[0-9]\..*$/) if matched = s.matched - matched =~ /\h([0-9])\.(.*)$/ + matched =~ /h([0-9])\.(.*)$/ level, title = $1.to_i, $2 if level < current_level -- cgit v1.2.3