[Groonga-commit] droonga/drntest at 441edc6 [master] Don't use regexp before I read $2 of the previous matching

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Nov 27 11:12:23 JST 2013


YUKI Hiroshi	2013-11-27 11:12:23 +0900 (Wed, 27 Nov 2013)

  New Revision: 441edc60aac809933f54004a9d79a1065e2ff717
  https://github.com/droonga/drntest/commit/441edc60aac809933f54004a9d79a1065e2ff717

  Message:
    Don't use regexp before I read $2 of the previous matching

  Modified files:
    lib/drntest/test-runner.rb

  Modified: lib/drntest/test-runner.rb (+2 -2)
===================================================================
--- lib/drntest/test-runner.rb    2013-11-27 10:58:33 +0900 (fa6bb9b)
+++ lib/drntest/test-runner.rb    2013-11-27 11:12:23 +0900 (b7286a9)
@@ -208,7 +208,7 @@ module Drntest
       loaded_options = {}
       Pathname(path).read.each_line do |line|
         next unless DIRECTIVE_MATCHER =~ line
-        key = $1.gsub(/-/, "_").to_sym
+        key = $1.gsub("-", "_").to_sym
         # nil value means that it is a boolean option.
         value = $2 || true
         if key == :include
@@ -244,7 +244,7 @@ module Drntest
       Pathname(path).read.each_line do |line|
         if line[0] == "#"
           if DIRECTIVE_MATCHER =~ line
-            key = $1.gsub(/-/, "_").to_sym
+            key = $1.gsub("-", "_").to_sym
             value = $2
             case key
             when :include
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index