Skip to content

Commit

Permalink
Fix Regexp deprecated third argument with Regexp::NOENCODING
Browse files Browse the repository at this point in the history
  • Loading branch information
weizheheng authored and ioquatix committed Dec 26, 2022
1 parent fe1c359 commit 7877a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/urlmap.rb
Expand Up @@ -37,7 +37,7 @@ def remap(map)
end

location = location.chomp('/')
match = Regexp.new("^#{Regexp.quote(location).gsub('/', '/+')}(.*)", nil, 'n')
match = Regexp.new("^#{Regexp.quote(location).gsub('/', '/+')}(.*)", Regexp::NOENCODING)

[host, location, match, app]
}.sort_by do |(host, location, _, _)|
Expand Down

0 comments on commit 7877a35

Please sign in to comment.