diff --git a/packages/app-desktop/plugins/GotoAnything.tsx b/packages/app-desktop/plugins/GotoAnything.tsx index aed524e3e..e7aa07dff 100644 --- a/packages/app-desktop/plugins/GotoAnything.tsx +++ b/packages/app-desktop/plugins/GotoAnything.tsx @@ -379,8 +379,10 @@ class DialogComponent extends React.PureComponent { const keywordRegexes = (await this.keywords(searchQuery)).map(term => { if (typeof term === 'string') { return new RegExp(escapeRegExp(term), 'ig'); - } else { + } else if (term.valueRegex) { return new RegExp(removeDiacritics(term.valueRegex), 'ig'); + } else { + return new RegExp(escapeRegExp(term.value), 'ig'); } });