From 905e6944db11aebd631aa1f6675f12b4745c785e Mon Sep 17 00:00:00 2001 From: Simon McConnell <22566656+simonmcconnell@users.noreply.github.com> Date: Thu, 13 Jun 2024 12:55:26 +0800 Subject: [PATCH] add default step size to range --- lib/tds/protocol.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tds/protocol.ex b/lib/tds/protocol.ex index f899704..f4eb8b9 100644 --- a/lib/tds/protocol.ex +++ b/lib/tds/protocol.ex @@ -391,7 +391,7 @@ defmodule Tds.Protocol do server = data |> String.split(";;") - |> Enum.slice(0..-2) + |> Enum.slice(0..-2//-1) |> Enum.reduce([], fn str, acc -> server = str