zotonic/z_stdlib

z_string:first_char is inconsistent

Closed this issue · 1 comments

first_char("test") -> "t" instead of $t
first_char(<<"test">>) -> $t

With the current release this is consistent:

2> z_string:first_char("test").
116
3> z_string:first_char(<<"test">>).
116