aboutsummaryrefslogtreecommitdiffstats
path: root/benchmark
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-08 15:05:18 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-08 15:05:18 +0000
commit159e9d0bbc8d10854c1dfff0fbe2a27c70a3b6de (patch)
tree96c648373623dfc48fe5c58373c28a0fc99c56c7 /benchmark
parentc3a94a2ca5884ec7e95e0f420fde1fe66b29c441 (diff)
downloadruby-159e9d0bbc8d10854c1dfff0fbe2a27c70a3b6de.tar.gz
benchmark/driver.rb: fix wrong multiline regexp
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark')
-rwxr-xr-xbenchmark/driver.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/driver.rb b/benchmark/driver.rb
index 3536d9abd4..efb73b4eed 100755
--- a/benchmark/driver.rb
+++ b/benchmark/driver.rb
@@ -50,7 +50,7 @@ class BenchmarkDriver
def build_yaml(file)
magic_comment = '# prelude' # bm_so_nsieve_bits hangs without magic comment
name = File.basename(file).sub(/\Abm_/, '').sub(/\.rb\z/, '')
- script = File.read(file).sub(/^__END__\n(.+\n)*/m, '').sub(/\A(^#.+\n)+/m) do |comment|
+ script = File.read(file).sub(/^__END__\n(.+\n)*/m, '').sub(/\A(^#[^\n]+\n)+/m) do |comment|
magic_comment = comment
''
end