Skip to content

Commit

Permalink
project name should be trimed
Browse files Browse the repository at this point in the history
  • Loading branch information
aswind7 committed Sep 6, 2023
1 parent 66ff27d commit dfadc6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-astro/src/actions/project-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function projectName(ctx: Pick<Context, 'cwd' | 'prompt' | 'project
},
});

ctx.cwd = name!;
ctx.cwd = name!.trim();
ctx.projectName = toValidName(name!);
} else {
let name = ctx.cwd;
Expand Down

0 comments on commit dfadc6b

Please sign in to comment.