diff options
author | eal <eal@waifu.club> | 2017-12-07 21:38:31 +0200 |
---|---|---|
committer | eal <eal@waifu.club> | 2017-12-07 21:38:31 +0200 |
commit | a3e68f02330a3c38f1d3f568ad507e5111b82600 (patch) | |
tree | 157ebb2376bed8f4cb41bd2d1b92c84b2fe3f5bb /lib | |
parent | bf91e5659ffd03b15110b6f1094b30aed940e45b (diff) | |
download | pleroma-a3e68f02330a3c38f1d3f568ad507e5111b82600.tar.gz |
Allow parentheses in links.
Diffstat (limited to 'lib')
-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 275c60f32..c98db2d94 100644 --- a/lib/pleroma/formatter.ex +++ b/lib/pleroma/formatter.ex @@ -1,7 +1,7 @@ defmodule Pleroma.Formatter do alias Pleroma.User - @link_regex ~r/https?:\/\/[\w\.\/?=\-#%&@~]+[\w\/]/u + @link_regex ~r/https?:\/\/[\w\.\/?=\-#%&@~\(\)]+[\w\/]/u def linkify(text) do Regex.replace(@link_regex, text, "<a href='\\0'>\\0</a>") end |