support SPC separator in timestamp
This commit is contained in:
parent
c4325a38fb
commit
bd76f1276e
1 changed files with 2 additions and 1 deletions
3
toml.c
3
toml.c
|
@ -1701,7 +1701,8 @@ int toml_rtots(const char* src_, toml_timestamp_t* ret)
|
||||||
*ret->year = val;
|
*ret->year = val;
|
||||||
|
|
||||||
if (*p) {
|
if (*p) {
|
||||||
if (*p != 'T') return -1;
|
// parse the T or space separator
|
||||||
|
if (*p != 'T' && *p != ' ') return -1;
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue