From 33560234437647f2d768578e7b285c858bff7898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Alves?= <71379045+andremralves@users.noreply.github.com> Date: Wed, 12 Apr 2023 16:30:09 -0300 Subject: [PATCH] add validation for non-printable chars in CLI (#6682) --- .changeset/four-ads-clap.md | 5 +++++ packages/create-astro/src/actions/project-name.ts | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 .changeset/four-ads-clap.md diff --git a/.changeset/four-ads-clap.md b/.changeset/four-ads-clap.md new file mode 100644 index 000000000..23e4c55a8 --- /dev/null +++ b/.changeset/four-ads-clap.md @@ -0,0 +1,5 @@ +--- +'create-astro': patch +--- + +add validation for non-printable characters diff --git a/packages/create-astro/src/actions/project-name.ts b/packages/create-astro/src/actions/project-name.ts index e293c86a2..943de91bf 100644 --- a/packages/create-astro/src/actions/project-name.ts +++ b/packages/create-astro/src/actions/project-name.ts @@ -24,6 +24,9 @@ export async function projectName(ctx: Pick