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:
@@ -579,6 +579,7 @@ function convertClaudeToCopilotContent(content, isGlobal = false) {
|
|||||||
} else {
|
} else {
|
||||||
c = c.replace(/\$HOME\/\.claude\//g, '.github/');
|
c = c.replace(/\$HOME\/\.claude\//g, '.github/');
|
||||||
c = c.replace(/~\/\.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/');
|
||||||
c = c.replace(/\.claude\//g, '.github/');
|
c = c.replace(/\.claude\//g, '.github/');
|
||||||
|
|||||||
Reference in New Issue
Block a user