MRF: ensure that subdomain_match calls are case-insensitive
This commit is contained in:
parent
17d5564a9c
commit
9cfc289594
3 changed files with 21 additions and 6 deletions
|
|
@ -28,7 +28,7 @@ defmodule Pleroma.Web.ActivityPub.MRF do
|
|||
|
||||
@spec subdomains_regex([String.t()]) :: [Regex.t()]
|
||||
def subdomains_regex(domains) when is_list(domains) do
|
||||
for domain <- domains, do: ~r(^#{String.replace(domain, "*.", "(.*\\.)*")}$)
|
||||
for domain <- domains, do: ~r(^#{String.replace(domain, "*.", "(.*\\.)*")}$)i
|
||||
end
|
||||
|
||||
@spec subdomain_match?([Regex.t()], String.t()) :: boolean()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue