Replaces String.strip with String.trim.

The former is deprecated.
This commit is contained in:
Jessica Canady 2024-05-21 12:47:06 -04:00
parent 120bb8e5fb
commit 94b7d6e6da
Signed by: phoenix
SSH key fingerprint: SHA256:aaLOzOrLi+0n4eDZNQKH97PehwRt6KSE5fYJc+ZRKCQ

View file

@ -4,6 +4,6 @@ defmodule Jol.Blog.Parser do
%{"attrs" => attrs, "body" => body} =
Regex.named_captures(~r/\+\+\+\n(?<attrs>.*)\n\+\+\+\n\n(?<body>.*)/s, content)
{attrs, String.strip(body)}
{attrs, String.trim(body)}
end
end