ruby-changes:15801
From: marcandre <ko1@a...>
Date: Tue, 11 May 2010 13:50:06 +0900 (JST)
Subject: [ruby-changes:15801] Ruby:r27731 (trunk): * lib/uri/mailto.rb: clean up regexp
marcandre 2010-05-11 13:49:56 +0900 (Tue, 11 May 2010) New Revision: 27731 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27731 Log: * lib/uri/mailto.rb: clean up regexp [ruby-core:29894] Modified files: trunk/lib/uri/mailto.rb Index: lib/uri/mailto.rb =================================================================== --- lib/uri/mailto.rb (revision 27730) +++ lib/uri/mailto.rb (revision 27731) @@ -38,7 +38,7 @@ # hvalue = *urlc # header = hname "=" hvalue HEADER_PATTERN = "(?:[^?=&]*=[^?=&]*)".freeze - HEADER_REGEXP = Regexp.new(HEADER_PATTERN, 'N').freeze + HEADER_REGEXP = Regexp.new(HEADER_PATTERN).freeze # headers = "?" header *( "&" header ) # to = #mailbox # mailtoURL = "mailto:" [ to ] [ headers ] -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/