[Groonga-commit] groonga/grntest [master] Use Regexp =~ String instead of String =~ Regexp

Back to archive index

null+****@clear***** null+****@clear*****
2012年 6月 6日 (水) 16:14:48 JST


Haruka Yoshihara	2012-06-06 16:14:48 +0900 (Wed, 06 Jun 2012)

  New Revision: 7cdf39949f286a50cd6eddde8c1eb326c5c1e932

  Log:
    Use Regexp =~ String instead of String =~ Regexp

  Modified files:
    lib/groonga/tester.rb

  Modified: lib/groonga/tester.rb (+1 -1)
===================================================================
--- lib/groonga/tester.rb    2012-06-06 16:13:26 +0900 (4357938)
+++ lib/groonga/tester.rb    2012-06-06 16:14:48 +0900 (7947a82)
@@ -644,7 +644,7 @@ module Groonga
         last_argument_name = nil
         n_non_named_arguments = 0
         arguments.each do |argument|
-          if argument =~ /\A--/
+          if /\A--/ =~ argument
             last_argument_name = argument.sub(/\A--/, "")
             next
           end




Groonga-commit メーリングリストの案内
Back to archive index