This commit is contained in:
CK Tan 2021-07-15 13:32:11 -07:00
parent b5818182a4
commit 208203af46
1 changed files with 1 additions and 1 deletions

2
toml.c
View File

@ -1723,7 +1723,7 @@ static int scan_string(context_t* ctx, char* p, int lineno, int dotisspecial)
/* check for timestamp without quotes */
if (0 == scan_date(p, 0, 0, 0) || 0 == scan_time(p, 0, 0, 0)) {
// forward thru the timestamp
for ( ; *p && strchr("0123456789.:+-T Z", toupper(*p)); p++);
p += strspn(p, "0123456789.:+-T Z");
// squeeze out any spaces at end of string
for ( ; p[-1] == ' '; p--);
// tokenize