Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make sure parse_string is passed either a binary or a list

  • Loading branch information...
commit 196afcf63e427a18f20f4b729764e61f4d3ebd47 1 parent bb6b690
Devin Torres authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/zucchini.erl
View
2  src/zucchini.erl
@@ -4,7 +4,7 @@
parse_string(String) when is_binary(String) ->
parse_string(binary_to_list(String));
-parse_string(String) ->
+parse_string(String) when is_list(String) ->
{ok, Tokens, _} = zucchini_lexer:string(String),
zucchini_parser:parse(Tokens).
Please sign in to comment.
Something went wrong with that request. Please try again.