From 466fece8c2838c24b40a6dd4671ec74d7be0b79f Mon Sep 17 00:00:00 2001 From: Mikko Ahlroth Date: Fri, 26 Apr 2024 19:33:19 +0300 Subject: [PATCH] Test on 1.12.3-otp-23 --- CHANGELOG | 7 +++++++ lib/dotenv_parser.ex | 2 +- mix.exs | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index bff1431..7c2262c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,10 @@ +2.0.1 +----- + +* Changed ~R sigils to ~r to fix compile warning. +* Changed String.slice range to stepped to fix compile warning. +* Raised minimum supported Elixir version to 1.12. + 2.0.0 ----- diff --git a/lib/dotenv_parser.ex b/lib/dotenv_parser.ex index 9d2ca98..75e2da6 100644 --- a/lib/dotenv_parser.ex +++ b/lib/dotenv_parser.ex @@ -313,7 +313,7 @@ defmodule DotenvParser do defp maybe_linefeed(%Continuation{start_quote: "\""}, input) do if String.ends_with?(input, "\\") do - String.slice(input, 0..-2) + String.slice(input, 0..-2//1) else input <> "\n" end diff --git a/mix.exs b/mix.exs index 87b6625..acc2214 100644 --- a/mix.exs +++ b/mix.exs @@ -4,8 +4,8 @@ defmodule DotenvParser.MixProject do def project do [ app: :dotenv_parser, - version: "2.0.0", - elixir: "~> 1.11", + version: "2.0.1", + elixir: "~> 1.12", start_permanent: Mix.env() == :prod, deps: deps(), docs: [