diff --git a/lib/new_relic/agent/instrumentation/roda/roda_transaction_namer.rb b/lib/new_relic/agent/instrumentation/roda/roda_transaction_namer.rb index 2985a2a6f0..82b284694e 100644 --- a/lib/new_relic/agent/instrumentation/roda/roda_transaction_namer.rb +++ b/lib/new_relic/agent/instrumentation/roda/roda_transaction_namer.rb @@ -10,7 +10,7 @@ module TransactionNamer extend self ROOT = '/'.freeze - REGEX_MULTIPLE_SLASHES = %r{^[/^\A]*(.*?)[/$?\z]*$}.freeze + REGEX_MULTIPLE_SLASHES = %r{^[/^]*(.*?)[/$?]*$}.freeze def transaction_name(request) path = request.path || ::NewRelic::Agent::UNKNOWN_METRIC