diff options
Diffstat (limited to 'src/msgparser.cc')
-rw-r--r-- | src/msgparser.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/msgparser.cc b/src/msgparser.cc index 79172e9..c05a9ee 100644 --- a/src/msgparser.cc +++ b/src/msgparser.cc @@ -104,7 +104,7 @@ MsgVector parse_msg(std::string data) { if(inside_quote) { printf("Appending %c\n", ch); token += ch; - continue; + break; } if(token.empty()) continue; // skip multiple white spaces and pre white space printf("Adding token %s\n", token.c_str()); @@ -112,6 +112,11 @@ MsgVector parse_msg(std::string data) { token.clear(); break; case ';': + if(inside_quote) { + printf("Appending %c\n", ch); + token += ch; + break; + } printf("Adding msg...\n"); if(!token.empty()) { tokens.push_back(token); |