mirror of https://github.com/laurent22/joplin.git
Chore: Fixed GotoAnything handling of search keywords
parent
e652db05e1
commit
54a82befa0
|
@ -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');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue