Don't modify frozen string (#22599)

Resolves #22598
This commit is contained in:
Josh Hagins
2016-07-05 10:54:11 -04:00
committed by GitHub
parent b3ee33f1a0
commit 70240f9ad7
+1 -1
View File
@@ -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