Skip to content

Commit

Permalink
Update packages/create-cloudflare/src/common.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Dario Piotrowicz <[email protected]>
  • Loading branch information
jculvey and dario-piotrowicz authored Oct 10, 2023
1 parent 2fc9959 commit 2f768f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-cloudflare/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const validateProjectDirectory = (relativePath: string) => {

// Ensure the name is valid per the pages schema
const projectName = basename(path);
const invalidChars = /^- | -$|[^a-z0-9-]/;
const invalidChars = /[^a-z0-9-]/;
const invalidStartEnd = /^-|-$/;

if (projectName.match(invalidStartEnd)) {
Expand Down

0 comments on commit 2f768f4

Please sign in to comment.