From d26971128c30b82f7372c8c33d083716e0b2f902 Mon Sep 17 00:00:00 2001 From: Wei Zhe Date: Mon, 26 Dec 2022 19:48:01 +0800 Subject: [PATCH] Fix Regexp deprecated third argument with Regexp::NOENCODING (#1998) --- 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, _, _)|