We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 746b312 commit 82a3dbeCopy full SHA for 82a3dbe
1 file changed
lib/plug/router/utils.ex
@@ -55,7 +55,7 @@ defmodule Plug.Router.Utils do
55
def build_host_match(host) do
56
cond do
57
is_nil(host) -> quote do: _
58
- String.last(host) == "." -> quote do: unquote(host) <> _
+ String.ends_with?(host, ".") -> quote do: unquote(host) <> _
59
is_binary(host) -> host
60
end
61
0 commit comments