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.
1 parent 18d4405 commit 3e18c49Copy full SHA for 3e18c49
src/vs/workbench/contrib/preferences/browser/preferencesSearch.ts
@@ -554,7 +554,7 @@ export class SettingMatches {
554
// Trim excess ending characters off the query.
555
singleWordQuery = singleWordQuery.toLowerCase().replace(/[\s-\._]+$/, '');
556
lineToSearch = lineToSearch.toLowerCase();
557
- const singleWordRegex = new RegExp(`\\b${singleWordQuery}\\b`);
+ const singleWordRegex = new RegExp(`\\b${strings.escapeRegExpCharacters(singleWordQuery)}\\b`);
558
if (singleWordRegex.test(lineToSearch)) {
559
this.matchType |= SettingMatchType.WholeWordMatch;
560
}
0 commit comments