From eecb06cabe1cc5370b0e11a8cf9c4f9d9803872f Mon Sep 17 00:00:00 2001 From: Nick Gagne Date: Wed, 1 Apr 2026 10:48:24 -0400 Subject: [PATCH] Fix path replacement for ~/.claude to ~/.github (#1529) * Fix path replacement for ~/.claude to ~/.github The current rules miss replacing this path because the current rules look for the .claude directory with a trailing slash, which this does not have. * Fix regex to replace trailing .claude with .github --- bin/install.js | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/install.js b/bin/install.js index df69acc29..f1f919ea1 100755 --- a/bin/install.js +++ b/bin/install.js @@ -579,6 +579,7 @@ function convertClaudeToCopilotContent(content, isGlobal = false) { } else { c = c.replace(/\$HOME\/\.claude\//g, '.github/'); c = c.replace(/~\/\.claude\//g, '.github/'); + c = c.replace(/~\/\.claude\n/g, '.github/'); } c = c.replace(/\.\/\.claude\//g, './.github/'); c = c.replace(/\.claude\//g, '.github/');