last sec fix

This commit is contained in:
gazhonsepaskwa
2025-02-19 10:17:06 +01:00
parent bfe038bfee
commit e673be640c
3 changed files with 6 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ int ft_isnumeric(char *str)
return (1);
while (str[i])
{
if (ft_isdigit(str[i]))
if (ft_isdigit(str[i]) || str[i] == '+' || str[i] == '-')
i++;
else
return (0);