Skip to content

Commit a32c657

Browse files
committed
Prevent single backtick paths containing template literals from being incorrectly parsed as file paths
1 parent fa5a054 commit a32c657

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎packages/vscode/src/commands/apply-chat-response-command/utils/clipboard-parser/parsers/multiple-files-parser.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ export const parse_multiple_files = (params: {
183183
(potential_path.includes('/') ||
184184
potential_path.includes('\\') ||
185185
potential_path.includes('.')) &&
186+
!potential_path.includes('${') &&
186187
!potential_path.includes(' ') &&
187188
/[a-zA-Z0-9]/.test(potential_path)
188189
) {

0 commit comments

Comments
 (0)