From 38c6472175ae42993cd24ebd7425c2e12b8e3ee0 Mon Sep 17 00:00:00 2001 From: Daniel Parker Date: Fri, 13 May 2022 13:26:02 -0400 Subject: [PATCH] Fix csv exponential number parsing issue #365 --- include/jsoncons_ext/csv/csv_parser.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/jsoncons_ext/csv/csv_parser.hpp b/include/jsoncons_ext/csv/csv_parser.hpp index 179dd8eeb9..ba0ad53351 100644 --- a/include/jsoncons_ext/csv/csv_parser.hpp +++ b/include/jsoncons_ext/csv/csv_parser.hpp @@ -1943,7 +1943,7 @@ class basic_csv_parser : public ser_context break; case '+': break; - case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8':case '9': + case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8':case '9': state = numeric_check_state::exp; buffer.push_back(*p); break;