Skip to content

Commit

Permalink
Change parser to allow 2 char symbols ending in > to be considered bi…
Browse files Browse the repository at this point in the history
…nary message.
  • Loading branch information
gabordemooij committed Jul 25, 2024
1 parent 7f47243 commit f141810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ ctr_tnode* ctr_cparse_message(int mode) {
int is_single_uchar = (ulen == 1 && lookAhead != CTR_TOKEN_COLON);
int is_single_uchar_in_ascii_form = 0;
#ifdef ASCIICOMPAT
is_single_uchar_in_ascii_form = (ulen == 2 && lookAhead != CTR_TOKEN_COLON && (msg[1] == '=' || msg[1] == '<'));
is_single_uchar_in_ascii_form = (ulen == 2 && lookAhead != CTR_TOKEN_COLON && (msg[1] == '=' || msg[1] == '<' || msg[1] == '>'));
#endif
isBin = (is_single_uchar || is_single_uchar_in_ascii_form);
if (mode == 2 && isBin) {
Expand Down

0 comments on commit f141810

Please sign in to comment.