We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 015530a commit fa8e6c2Copy full SHA for fa8e6c2
1 file changed
src/ui/promptCardsWebview.ts
@@ -984,7 +984,7 @@ export class PromptCardsWebviewProvider implements vscode.WebviewViewProvider {
984
function renderPromptCard(prompt) {
985
const typeIcon = getTypeIcon(prompt.type);
986
// Escape characters in paths for JavaScript single-quoted strings (Windows compatibility)
987
- const escapedPath = String(prompt.path).replace(/\\/g, '\\\\').replace(/'/g, '\\\'');
+ const escapedPath = prompt.path.replace(/\\\\/g, '\\\\\\\\');
988
return \`
989
<div class="prompt-card \${prompt.type} \${prompt.active ? 'active' : ''}" onclick="viewPrompt('\${escapedPath}')">
990
<div class="card-header">
0 commit comments