From bc6262d2503fa5a9656898fa2dcd91b2111cf2b5 Mon Sep 17 00:00:00 2001 From: Maksim Pechnikov Date: Fri, 14 Dec 2018 21:21:37 +0300 Subject: [PATCH] fixed typo --- lib/pleroma/formatter.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pleroma/formatter.ex b/lib/pleroma/formatter.ex index b6079551c..46d0d926a 100644 --- a/lib/pleroma/formatter.ex +++ b/lib/pleroma/formatter.ex @@ -5,7 +5,7 @@ defmodule Pleroma.Formatter do alias Pleroma.Emoji @tag_regex ~r/\#\w+/u - @mardown_characters_regex ~r/(`|\*|_|{|}|[|]|\(|\)|#|\+|-|\.|!)/ + @markdown_characters_regex ~r/(`|\*|_|{|}|[|]|\(|\)|#|\+|-|\.|!)/ def parse_tags(text, data \\ %{}) do Regex.scan(@tag_regex, text) @@ -85,7 +85,7 @@ def html_escape(text, "text/plain") do def mentions_escape(text, mentions) do mentions |> Enum.reduce(text, fn {name, _}, acc -> - escape_name = String.replace(name, @mardown_characters_regex, "\\\\\\1") + escape_name = String.replace(name, @markdown_characters_regex, "\\\\\\1") String.replace(acc, name, escape_name) end) end