Skip to content

Commit 8106f95

Browse files
committed
Bump version & amalgamate
1 parent ee4253e commit 8106f95

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

amalgamate.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
OUTPUT_PATH = "single_include/jsonh_cpp_amalgamated.hpp"
44

55
HEADER = "// JsonhCpp (JSON for Humans)
6-
// Version: 4.10
6+
// Version: 4.11
77
// Link: https://github.com/jsonh-org/JsonhCpp
88
// License: MIT"
99

single_include/jsonh_cpp_amalgamated.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// JsonhCpp (JSON for Humans)
2-
// Version: 4.10
2+
// Version: 4.11
33
// Link: https://github.com/jsonh-org/JsonhCpp
44
// License: MIT
55

@@ -30792,6 +30792,11 @@ class jsonh_reader : utf8_reader {
3079230792
bool is_fraction = false;
3079330793
bool is_empty = true;
3079430794

30795+
// Leading zero (not base specifier)
30796+
if (!has_base_specifier && number_builder.size() >= 1 && number_builder.back() == '0') {
30797+
is_empty = false;
30798+
}
30799+
3079530800
while (true) {
3079630801
// Peek rune
3079730802
std::optional<std::string> next = peek();

0 commit comments

Comments
 (0)