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",