Allow trailing spaces in lj_strscan_scan

This commit is contained in:
indev authored and Alug committed 2025-02-20 21:44:14 +01:00
1 parent c711bf42c9
commit 661d4ee8e1
1 file changed
+3
+3
View File
@@ -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