[前][次][番号順一覧][スレッド一覧]

ruby-changes:36437

From: usa <ko1@a...>
Date: Fri, 21 Nov 2014 00:29:56 +0900 (JST)
Subject: [ruby-changes:36437] usa:r48518 (trunk): * lib/net/imap.rb (Net::IMAP::ResponseParser::BEG_REGEXP): no need to use embbed

usa	2014-11-21 00:29:51 +0900 (Fri, 21 Nov 2014)

  New Revision: 48518

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48518

  Log:
    * lib/net/imap.rb (Net::IMAP::ResponseParser::BEG_REGEXP): no need to use embbed
      string.

  Modified files:
    trunk/lib/net/imap.rb
Index: lib/net/imap.rb
===================================================================
--- lib/net/imap.rb	(revision 48517)
+++ lib/net/imap.rb	(revision 48518)
@@ -2100,9 +2100,9 @@ module Net https://github.com/ruby/ruby/blob/trunk/lib/net/imap.rb#L2100
 
       BEG_REGEXP = /\G(?:\
 (?# 1:  SPACE   )( +)|\
-(?# 2:  NIL     )(NIL)(?=[\x80-\xff(){ \x00-\x1f\x7f%*#{'"'}\\\[\]+])|\
-(?# 3:  NUMBER  )(\d+)(?=[\x80-\xff(){ \x00-\x1f\x7f%*#{'"'}\\\[\]+])|\
-(?# 4:  ATOM    )([^\x80-\xff(){ \x00-\x1f\x7f%*#{'"'}\\\[\]+]+)|\
+(?# 2:  NIL     )(NIL)(?=[\x80-\xff(){ \x00-\x1f\x7f%*"\\\[\]+])|\
+(?# 3:  NUMBER  )(\d+)(?=[\x80-\xff(){ \x00-\x1f\x7f%*"\\\[\]+])|\
+(?# 4:  ATOM    )([^\x80-\xff(){ \x00-\x1f\x7f%*"\\\[\]+]+)|\
 (?# 5:  QUOTED  )"((?:[^\x00\r\n"\\]|\\["\\])*)"|\
 (?# 6:  LPAR    )(\()|\
 (?# 7:  RPAR    )(\))|\

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]