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
This commit is contained in:
Nick Gagne
2026-04-01 10:48:24 -04:00
committed by GitHub
parent 067d411c9b
commit eecb06cabe

View File

@@ -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/');