Update profiler.rb

Wrong variable was targeted for regex.