Changeset 18684

Show
Ignore:
Timestamp:
09/03/08 01:00:13 (3 months ago)
Author:
znz
Message:

正規表現の括弧の対応がおかしくなっていたのを修正

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/net-irc/trunk/examples/tig.rb

    r18670 r18684  
    810810 
    811811        def untinyurl(text) 
    812                 text.gsub(%r"http://(?:(preview\.)?tin|rub)yurl\.com)/[0-9a-z=]+"i) {|m| 
     812                text.gsub(%r"http://(?:(?:preview\.)?tin|rub)yurl\.com/[0-9a-z=]+"i) {|m| 
    813813                        uri = URI(m) 
    814814                        uri.host = uri.host.sub($1, "") if $1