From f79a6f701a6bd0ef086fbdb40c2bb7622f048afc Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 6 Nov 2010 13:29:23 +0000 Subject: Makes textile formatter accept 2 letters acronym (#6591). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4374 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redcloth3.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/redcloth3.rb b/lib/redcloth3.rb index ffc0e1186..d720af9d8 100644 --- a/lib/redcloth3.rb +++ b/lib/redcloth3.rb @@ -456,7 +456,7 @@ class RedCloth3 < String # next if tog and method( tog ).call # text.gsub! re, resub #end - text.gsub!(/\b([A-Z][A-Z0-9]{2,})\b(?:[(]([^)]*)[)])/) do |m| + text.gsub!(/\b([A-Z][A-Z0-9]{1,})\b(?:[(]([^)]*)[)])/) do |m| "#{$1}" end end -- cgit v1.2.3