Accept port number in urls.

This commit is contained in:
lain 2018-04-06 16:35:54 +02:00
commit 60f92e406c
2 changed files with 8 additions and 1 deletions

View file

@ -144,7 +144,7 @@ defmodule Pleroma.Formatter do
@emoji
end
@link_regex ~r/https?:\/\/[\w\.\/?=\-#\+%&@~\(\)]+[\w\/]/u
@link_regex ~r/https?:\/\/[\w\.\/?=\-#\+%&@~\(\):]+[\w\/]/u
def html_escape(text) do
Regex.split(@link_regex, text, include_captures: true)