From 70240f9ad7027c33ce9578fe2a4bba7af2012675 Mon Sep 17 00:00:00 2001 From: Josh Hagins Date: Tue, 5 Jul 2016 10:54:11 -0400 Subject: [PATCH] Don't modify frozen string (#22599) Resolves #22598 --- lib/hbc/locations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hbc/locations.rb b/lib/hbc/locations.rb index 6f4f310910..1e5c549c69 100644 --- a/lib/hbc/locations.rb +++ b/lib/hbc/locations.rb @@ -126,7 +126,7 @@ module Hbc::Locations end def path(query) - query.sub!(%r{\.rb$}i, "") + query = query.sub(%r{\.rb$}i, "") token_with_tap = if query.include?("/") query else