fix: exponent can allow + sign directly after it
This commit is contained in:
parent
c4eea395d4
commit
e4bc6ed08c
|
@ -108,7 +108,7 @@ int JsonBuilder::coerceAsciiNumberToJSON(const char *s, int len, char *dst) {
|
|||
}
|
||||
|
||||
// Allow one optional sign
|
||||
if(*s == '-') {
|
||||
if(*s == '-' || *s == '+') {
|
||||
*wptr++ = *s++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue