Skip to content

Commit

Permalink
Fix #43458
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Feb 12, 2018
1 parent f436da6 commit ef42990
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,13 @@ export class PreferencesSearchService extends Disposable implements IPreferences
}

export class LocalSearchProvider implements ISearchProvider {
private _filter: string;

constructor(filter: string) {
this._filter = filter;
constructor(private _filter: string) {
// Remove " and : which are likely to be copypasted as part of a setting name.
// Leave other special characters which the user might want to search for.
this._filter = this._filter
.replace(/[":]/g, ' ')
.replace(/ /g, ' ')
.trim();
}

searchModel(preferencesModel: ISettingsEditorModel): TPromise<ISearchResult> {
Expand Down

0 comments on commit ef42990

Please sign in to comment.