diff options
Diffstat (limited to 'railties/guides/rails_guides/textile_extensions.rb')
-rw-r--r-- | railties/guides/rails_guides/textile_extensions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/rails_guides/textile_extensions.rb b/railties/guides/rails_guides/textile_extensions.rb index b22be5752d..082c2efddd 100644 --- a/railties/guides/rails_guides/textile_extensions.rb +++ b/railties/guides/rails_guides/textile_extensions.rb @@ -13,9 +13,9 @@ module RailsGuides end def tip(body) - body.gsub!(/^(TIP)\:(.*)$/) do |m| + body.gsub!(/^TIP(?:\.|\:)(.*)$/) do |m| result = "<div class='info'><p>" - result << $2.strip + result << $1.strip result << '</p></div>' result end |