From 982c85e0448895f10398f3c6acf9e574d8d0d3f8 Mon Sep 17 00:00:00 2001 From: Diederick Lawson Date: Thu, 2 May 2024 17:06:46 +0200 Subject: [PATCH] Do not truncate as_string --- lib/wuunder_utils/strings.ex | 4 ++-- mix.exs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/wuunder_utils/strings.ex b/lib/wuunder_utils/strings.ex index 99c7e0b..cdc0a14 100644 --- a/lib/wuunder_utils/strings.ex +++ b/lib/wuunder_utils/strings.ex @@ -145,8 +145,8 @@ defmodule WuunderUtils.Strings do """ @spec as_string(any()) :: String.t() - def as_string(value) when is_binary(value), do: truncate(value, 255) - def as_string(value), do: as_string(inspect(value)) + def as_string(value) when is_binary(value), do: value + def as_string(value), do: inspect(value) @doc """ Truncates a string with a given string. If string is longer than diff --git a/mix.exs b/mix.exs index 53ca9b4..1f4e0d9 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule WuunderUtils.MixProject do def project do [ app: :wuunder_utils, - version: "0.2.5", + version: "0.2.6", elixir: "~> 1.14", organization: "wuunder", name: "Wuunder Utils",