diff --git a/packages/docusaurus/src/commands/deploy.ts b/packages/docusaurus/src/commands/deploy.ts index 086e257a8bc6..05cc6e6860d9 100644 --- a/packages/docusaurus/src/commands/deploy.ts +++ b/packages/docusaurus/src/commands/deploy.ts @@ -69,7 +69,7 @@ This behavior can have SEO impacts and create relative link issues. const repoUrlUseSSH = currentRepoUrl.match(/^ssh:\/\//) !== null || - currentRepoUrl.match(/^([\w\-]+@)?[\w.\-]+:[\w.\-\/_]+(\.git)?/) !== null; + currentRepoUrl.match(/^([\w-]+@)?[\w.-]+:[\w.\-/_]+(\.git)?/) !== null; const envUseSSH = process.env.USE_SSH !== undefined &&