use more correct uri encoding method

This commit is contained in:
byte[] 2019-12-25 03:49:40 -05:00
parent d9340371e5
commit dd84e8631b

View file

@ -42,9 +42,9 @@ defmodule Philomena.Slug do
|> String.replace(":", "-colon-")
|> String.replace(".", "-dot-")
|> String.replace("+", "-plus-")
|> URI.encode()
|> URI.encode_www_form()
|> String.replace("%20", "+")
end
def slug(_string), do: ""
end
end