Allow trailing spaces in lj_strscan_scan
This commit is contained in:
1 parent
c711bf42c9
commit
661d4ee8e1
1 file changed
+3
@@ -496,6 +496,9 @@ StrScanFmt lj_strscan_scan(const uint8_t *p, MSize len, TValue *o,
|
||||
#endif
|
||||
|
||||
#if LJ_INTONLY
|
||||
/* Skip trailing spaces */
|
||||
while (p < pe && *p == ' ') ++p;
|
||||
|
||||
if (*p || p < pe)
|
||||
return STRSCAN_ERROR;
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user