@@ -445,6 +445,10 @@ int js_isarrayindex(js_State *J, const char *p, int *idx)
{
intn=0;
/* check for empty string */
if(p[0]==0)
return0;
/* check for '0' and integers with leading zero */
if(p[0]=='0')
return(p[1]==0)?*idx=0,1:0;
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.