From 1fa128c3f161d92accfdf99f62a527e88daffc87 Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Tue, 26 Mar 2024 16:45:46 -0700 Subject: [PATCH] Allow `.` in create-remix `--template` repo name (#9026) --- .changeset/curvy-seahorses-jog.md | 5 +++++ contributors.yml | 1 + packages/create-remix/copy-template.ts | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/curvy-seahorses-jog.md diff --git a/.changeset/curvy-seahorses-jog.md b/.changeset/curvy-seahorses-jog.md new file mode 100644 index 00000000000..7365d23875f --- /dev/null +++ b/.changeset/curvy-seahorses-jog.md @@ -0,0 +1,5 @@ +--- +"create-remix": patch +--- + +Allow `.` in repo name when using `--template` flag diff --git a/contributors.yml b/contributors.yml index 8dfa931f119..8aa3c50cc05 100644 --- a/contributors.yml +++ b/contributors.yml @@ -607,6 +607,7 @@ - tomer-yechiel - TomerAberbach - TomVance +- TooTallNate - toufiqnuur - toyozaki - TrySound diff --git a/packages/create-remix/copy-template.ts b/packages/create-remix/copy-template.ts index 88f65fb500b..aa97e30c7ff 100644 --- a/packages/create-remix/copy-template.ts +++ b/packages/create-remix/copy-template.ts @@ -423,7 +423,7 @@ function isGithubRepoShorthand(value: string) { // remix-run/remix // remix-run/remix/templates/express // remix-run/examples/socket.io - return /^[\w-]+\/[\w-]+(\/[\w-.]+)*$/.test(value); + return /^[\w-]+\/[\w-.]+(\/[\w-.]+)*$/.test(value); } function isGithubReleaseAssetUrl(url: string) {