From b359a017941be0d2ac7970c47a41d9098f6d6bc3 Mon Sep 17 00:00:00 2001 From: David Gillies Date: Thu, 27 Nov 2014 16:27:15 +1100 Subject: [PATCH] regex match for Info or info --- lib/puppet-profiler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet-profiler.rb b/lib/puppet-profiler.rb index b3698e9..8a8afef 100644 --- a/lib/puppet-profiler.rb +++ b/lib/puppet-profiler.rb @@ -5,7 +5,7 @@ def self.run(num_res, cmd) times = [] output.each { |line| - if line =~ /info: .*([A-Z][^\[]+)\[(.+?)\]: Evaluated in ([\d\.]+) seconds$/ + if line =~ /[Ii]nfo: .*([A-Z][^\[]+)\[(.+?)\]: Evaluated in ([\d\.]+) seconds$/ type = $1 title = $2 time = $3.to_f