Chore: Fixed GotoAnything handling of search keywords

pull/11437/head
Laurent Cozic 2024-11-23 17:07:13 +00:00
parent e652db05e1
commit 54a82befa0
1 changed files with 3 additions and 1 deletions

View File

@ -379,8 +379,10 @@ class DialogComponent extends React.PureComponent<Props, State> {
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');
}
});