diff options
author | Sergey Suprunenko <suprunenko.s@gmail.com> | 2019-05-24 20:34:23 +0000 |
---|---|---|
committer | kaniini <nenolod@gmail.com> | 2019-05-24 20:34:23 +0000 |
commit | bbea5691da67916151a883f09e24da7c2e27d9ba (patch) | |
tree | dbb7d75ddf23eed3dd173148da306431e90ab017 /lib/pleroma/formatter.ex | |
parent | 8a0ee011ac7b679876eb7d81547dde416c208af1 (diff) | |
download | pleroma-bbea5691da67916151a883f09e24da7c2e27d9ba.tar.gz |
Mention all people in the beginning of DM
Diffstat (limited to 'lib/pleroma/formatter.ex')
-rw-r--r-- | lib/pleroma/formatter.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/formatter.ex b/lib/pleroma/formatter.ex index 3e3b9fe97..607843a5b 100644 --- a/lib/pleroma/formatter.ex +++ b/lib/pleroma/formatter.ex @@ -8,7 +8,7 @@ defmodule Pleroma.Formatter do alias Pleroma.User alias Pleroma.Web.MediaProxy - @safe_mention_regex ~r/^(\s*(?<mentions>@.+?\s+)+)(?<rest>.*)/s + @safe_mention_regex ~r/^(\s*(?<mentions>(@.+?\s+){1,})+)(?<rest>.*)/s @link_regex ~r"((?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~%:/?#[\]@!\$&'\(\)\*\+,;=.]+)|[0-9a-z+\-\.]+:[0-9a-z$-_.+!*'(),]+"ui @markdown_characters_regex ~r/(`|\*|_|{|}|[|]|\(|\)|#|\+|-|\.|!)/ |