Fix compatibility with Elixir 1.8
authorEgor Kislitsyn <egor@kislitsyn.com>
Wed, 14 Aug 2019 14:03:25 +0000 (21:03 +0700)
committerEgor Kislitsyn <egor@kislitsyn.com>
Wed, 14 Aug 2019 14:03:25 +0000 (21:03 +0700)
lib/pleroma/emails/user_email.ex

index bf6b811b1c47515ad53baa4249dff71605f6f6af..3b5e64019c44caec577162382dd0f69d53250437 100644 (file)
@@ -154,7 +154,7 @@ defmodule Pleroma.Emails.UserEmail do
   defp format_links(str) do
     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;\"")
     end)
   end