Fix compatibility with Elixir 1.8

This commit is contained in:
Egor Kislitsyn 2019-08-14 21:03:25 +07:00
parent 4b7f1c6995
commit c9970feee2

View File

@ -154,7 +154,7 @@ defmodule Pleroma.Emails.UserEmail do
defp format_links(str) do defp format_links(str) do
re = ~r/<a.+href=['"].*>/iU re = ~r/<a.+href=['"].*>/iU
String.replace(str, re, fn link -> Regex.replace(re, str, fn link ->
String.replace(link, "<a", "<a style=\"color: #d8a070;text-decoration: none;\"") String.replace(link, "<a", "<a style=\"color: #d8a070;text-decoration: none;\"")
end) end)
end end