Skip to content

Commit

Permalink
export keys can now start with _
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminHThomas committed Jul 30, 2024
1 parent fc8fb73 commit 13d8b4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/built_ins/export.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: bthomas <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/12 20:32:33 by bthomas #+# #+# */
/* Updated: 2024/07/30 13:27:36 by bthomas ### ########.fr */
/* Updated: 2024/07/30 13:43:17 by bthomas ### ########.fr */
/* */
/* ************************************************************************** */

Expand All @@ -19,7 +19,7 @@ static bool invalid_key(char *s)
i = 0;
while (s && s[i])
{
if (i == 0 && !ft_isalpha(s[i]))
if (i == 0 && (!ft_isalpha(s[i]) && s[i] != '_'))
return (true);
if (invalid_path_char(s[i]))
return (true);
Expand Down

0 comments on commit 13d8b4c

Please sign in to comment.