Handle + in links.
This commit is contained in:
parent
bf953989cd
commit
81600c94f4
2 changed files with 8 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue