comments on tail_clean
This commit is contained in:
parent
550f628564
commit
41292d4077
1 changed files with 2 additions and 0 deletions
|
@ -40,6 +40,8 @@ parse_opts([{explicit_termination, Value}|Rest], Opts) ->
|
||||||
parse_opts(Rest, Opts#opts{explicit_termination = Value}).
|
parse_opts(Rest, Opts#opts{explicit_termination = Value}).
|
||||||
|
|
||||||
|
|
||||||
|
%% ensures there's no invalid characters left in the stream upon completion of parsing
|
||||||
|
|
||||||
tail_clean(<<X/utf8, Rest/binary>>) when ?is_whitespace(X) ->
|
tail_clean(<<X/utf8, Rest/binary>>) when ?is_whitespace(X) ->
|
||||||
tail_clean(Rest);
|
tail_clean(Rest);
|
||||||
tail_clean(<<>>) ->
|
tail_clean(<<>>) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue