Fixed json errors

main
Ambigapathy Vinayak ago%!(EXTRA string=1 year)
parent 9b7713b5ba
commit 35d681ed21
  1. 4
      src/bakatools/json/lexer.cpp

@ -21,10 +21,10 @@ namespace Bk::Json
char Lexer::get_without_white_space() char Lexer::get_without_white_space()
{ {
char c = ' '; char c = ' ';
while ((c == ' ' || c == '\n')) while (c == ' ' || c == '\n' || c == '\t' || c == '\r')
{ {
c = get_next_char(); // check c = get_next_char(); // check
if ((c == ' ' || c == '\n') && !data.size()) break; if ((c == ' ' || c == '\n' || c == '\t' || c == '\r') && !data.size()) break;
else if (!data.size()) return c; else if (!data.size()) return c;
} }
return c; return c;

Loading…
Cancel
Save