]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
HTML IRCification: match p and br tags case insensitive
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 4 Apr 2007 14:28:29 +0000 (14:28 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 4 Apr 2007 14:28:29 +0000 (14:28 +0000)
lib/rbot/core/utils/extends.rb

index bec6e94e9a6cc2ffe59e14a681a97d75878aaa54..ff9d0f353f0ae319f0718aa7caf522bbbff4081b 100644 (file)
@@ -57,7 +57,7 @@ class ::String
     # txt.gsub!(/<\/?a( [^>]*)?>/, "#{Reverse}")
 
     # Paragraph and br tags are converted to whitespace
-    txt.gsub!(/<\/?(p|br)(?:\s+[^>]*)?\s*\/?\s*>/, ' ')
+    txt.gsub!(/<\/?(p|br)(?:\s+[^>]*)?\s*\/?\s*>/i, ' ')
     txt.gsub!("\n", ' ')
     txt.gsub!("\r", ' ')