• Thomas B. Rücker's avatar
    Fix issue with only "-" and whitespace in element · 56bbc0d1
    Thomas B. Rücker authored
    Fixes: #2198
    
    If there is a single "-" or it is only accompanied by whitespace, then
    it wouldn't get escaped as it was detected as as a number. This would
    produce invalid JSON.
    This makes the numbers part ignore such and thus ensures it gets escaped
    as text.
    
    There might be other corner cases related to number parsing, this should be investigated.
    56bbc0d1
Name
Last commit
Last update
admin Loading commit data...
conf Loading commit data...
doc Loading commit data...
examples Loading commit data...
m4 @ 17a3e593 Loading commit data...
src Loading commit data...
web Loading commit data...
win32 Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
HACKING Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
autogen.sh Loading commit data...
configure.in Loading commit data...