We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TextSearchProvider
1 parent 1bfdc90 commit 99eb41aCopy full SHA for 99eb41a
src/providers/FileSystemProvider/TextSearchProvider.ts
@@ -314,8 +314,9 @@ export class TextSearchProvider implements vscode.TextSearchProvider {
314
// The server reported no matches in this file
315
!file.matches.length ||
316
// The file name is malformed
317
- (file.doc.includes("/") && !/\/(?:[^/]+\/)+[^/.]*(?:\.[^/.]+)+/.test(file.doc)) ||
318
- (!file.doc.includes("/") && !/(%?[\p{L}\d\u{100}-\u{ffff}]+(?:\.[\p{L}\d\u{100}-\u{ffff}]+)+)/u.test(file.doc))
+ (file.doc.includes("/") && !/^\/(?:[^/]+\/)+[^/.]*(?:\.[^/.]+)+$/.test(file.doc)) ||
+ (!file.doc.includes("/") &&
319
+ !/^(%?[\p{L}\d\u{100}-\u{ffff}]+(?:\.[\p{L}\d\u{100}-\u{ffff}]+)+)$/u.test(file.doc))
320
) {
321
return;
322
}
0 commit comments