Skip to content

Commit

Permalink
Fix issue with workers e2e test names
Browse files Browse the repository at this point in the history
  • Loading branch information
jculvey committed Oct 12, 2023
1 parent 5071824 commit 2dcc2ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/create-cloudflare/e2e-tests/workers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe.skipIf(frameworkToTest || isQuarantineMode())(
});

const runCli = async (template: string) => {
const projectPath = getPath(template);
const projectPath = getPath(template.toLowerCase());

const argv = [
projectPath,
Expand Down
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 2dcc2ca

Please sign in to comment.