use lj_char_isspace
This commit is contained in:
1 parent
1ed3cf28b0
commit
b96dc05a45
1 file changed
+1
-1
@@ -497,7 +497,7 @@ StrScanFmt lj_strscan_scan(const uint8_t *p, MSize len, TValue *o,
|
||||
|
||||
#if LJ_INTONLY
|
||||
/* Skip trailing spaces */
|
||||
while (p < pe && *p == ' ') ++p;
|
||||
while (lj_char_isspace(*p)) p++;
|
||||
|
||||
if (*p || p < pe)
|
||||
return STRSCAN_ERROR;
|
||||
|
||||
Reference in new issue
Block a user