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) {