/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/08 10:50:26 by ljiriste #+# #+# */
-/* Updated: 2024/08/22 15:21:35 by ljiriste ### ########.fr */
+/* Updated: 2024/08/22 16:15:32 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
t_wildcard_info info_dup;
info_dup = *info;
- ++info->current_expand_char;
- if (add_conformant(expanded, info, '\0'))
- return (1);
+ if (!(*(info->current_expand_char + 1) == '/' && info->current_entry_char == info->entry))
+ {
+ ++info->current_expand_char;
+ if (add_conformant(expanded, info, '\0'))
+ return (1);
+ }
if (start_size != expanded->size || *info->current_entry_char == '\0')
return (0);
++info_dup.current_entry_char;