parsing Swoosh modules

This commit is contained in:
Alexander Strizhakov 2020-01-23 18:21:29 +03:00
commit 6cd2e851d9
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
2 changed files with 10 additions and 1 deletions

View file

@ -416,7 +416,7 @@ defmodule Pleroma.ConfigDB do
@spec is_module_name?(String.t()) :: boolean()
def is_module_name?(string) do
Regex.match?(~r/^(Pleroma|Phoenix|Tesla|Quack|Ueberauth)\./, string) or
Regex.match?(~r/^(Pleroma|Phoenix|Tesla|Quack|Ueberauth|Swoosh)\./, string) or
string in ["Oban", "Ueberauth", "ExSyslogger"]
end
end