Skip to content

Commit 8ec0a30

Browse files
Merge pull request #15 from artemnvkv/string-fix-errors
Fix string type errors function
2 parents 69ea692 + 0c98195 commit 8ec0a30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/types/string_type.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ defmodule Talos.Types.StringType do
6969
value
7070
) do
7171
errors =
72-
case String.valid?(value) do
72+
case is_binary(value) && String.valid?(value) do
7373
true ->
7474
str_len = String.length(value)
7575

0 commit comments

Comments
 (0)