Expansion: Norm recheck

This commit is contained in:
Jérôme Guélen 2025-03-10 17:22:38 +01:00
parent a41f10eda3
commit de53d2b8bc
No known key found for this signature in database
3 changed files with 5 additions and 6 deletions

View file

@ -6,7 +6,7 @@
/* By: jguelen <jguelen@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/23 15:02:59 by jguelen #+# #+# */
/* Updated: 2025/03/10 17:08:25 by jguelen ### ########.fr */
/* Updated: 2025/03/10 17:21:25 by jguelen ### ########.fr */
/* */
/* ************************************************************************** */
@ -154,7 +154,7 @@ t_wordlist *expand_star(t_worddesc *file_pattern)
tmp = replace_in_str(file_pattern->marker, i, i, NULL);
free(file_pattern->marker);
file_pattern->marker = tmp;
continue;
continue ;
}
i++;
}

View file

@ -6,7 +6,7 @@
/* By: jguelen <jguelen@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/03/07 17:10:01 by jguelen #+# #+# */
/* Updated: 2025/03/10 15:36:11 by jguelen ### ########.fr */
/* Updated: 2025/03/10 17:22:00 by jguelen ### ########.fr */
/* */
/* ************************************************************************** */
@ -142,10 +142,9 @@ int ispattern(t_worddesc *desc)
{
if ((desc->word[i] == '*' || desc->word[i] == '?')
&& (desc->marker[i] != '\'' && desc->marker[i] != '"'
&& desc->marker[i] != '&'))
&& desc->marker[i] != '&'))
return (1);
i++;
}
return (0);
}