YUKI Hiroshi
null+****@clear*****
Mon Nov 25 18:19:12 JST 2013
YUKI Hiroshi 2013-11-25 18:19:12 +0900 (Mon, 25 Nov 2013) New Revision: 530299fce2d963f9eb91ba255059731702c6dfc9 https://github.com/droonga/drntest/commit/530299fce2d963f9eb91ba255059731702c6dfc9 Message: Escape special characters in a regexp Modified files: lib/drntest/test-runner.rb Modified: lib/drntest/test-runner.rb (+1 -1) =================================================================== --- lib/drntest/test-runner.rb 2013-11-25 18:17:48 +0900 (0f61bec) +++ lib/drntest/test-runner.rb 2013-11-25 18:19:12 +0900 (f152664) @@ -164,7 +164,7 @@ module Drntest def load_options options = {} target_path.read.each_line do |line| - next unless /\A#@([^\s]+)\s+(.+)\z/ =~ line + next unless /\A\#\@([^\s]+)\s+(.+)\z/ =~ line options[$1.to_sym] = $2 end options -------------- next part -------------- HTML����������������������������... 下載