From 6f5267ff4013d502d4756e466171beda99fa2a5b Mon Sep 17 00:00:00 2001 From: Wei Zhe Heng Date: Mon, 26 Dec 2022 12:05:57 +0800 Subject: [PATCH] Fix Regexp deprecated third argument with Regexp::NOENCODING --- lib/rack/urlmap.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rack/urlmap.rb b/lib/rack/urlmap.rb index afb97eea4..99c4d8236 100644 --- a/lib/rack/urlmap.rb +++ b/lib/rack/urlmap.rb @@ -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, _, _)|