From 94b7d6e6daf4ed449573a5ba1db4a47d586b6c04 Mon Sep 17 00:00:00 2001 From: Jessica Phoenix Canady Date: Tue, 21 May 2024 12:47:06 -0400 Subject: [PATCH] Replaces String.strip with String.trim. The former is deprecated. --- lib/jol/blog/parser.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jol/blog/parser.ex b/lib/jol/blog/parser.ex index 57d967c..adc9b32 100644 --- a/lib/jol/blog/parser.ex +++ b/lib/jol/blog/parser.ex @@ -4,6 +4,6 @@ defmodule Jol.Blog.Parser do %{"attrs" => attrs, "body" => body} = Regex.named_captures(~r/\+\+\+\n(?.*)\n\+\+\+\n\n(?.*)/s, content) - {attrs, String.strip(body)} + {attrs, String.trim(body)} end end