Replaces String.strip with String.trim.
The former is deprecated.
This commit is contained in:
parent
120bb8e5fb
commit
94b7d6e6da
|
@ -4,6 +4,6 @@ defmodule Jol.Blog.Parser do
|
||||||
%{"attrs" => attrs, "body" => body} =
|
%{"attrs" => attrs, "body" => body} =
|
||||||
Regex.named_captures(~r/\+\+\+\n(?<attrs>.*)\n\+\+\+\n\n(?<body>.*)/s, content)
|
Regex.named_captures(~r/\+\+\+\n(?<attrs>.*)\n\+\+\+\n\n(?<body>.*)/s, content)
|
||||||
|
|
||||||
{attrs, String.strip(body)}
|
{attrs, String.trim(body)}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue