fix glitch when typing "note" into search

This commit is contained in:
Martti Malmi 2023-02-12 18:53:25 +02:00
parent 4048f63794
commit 6c9319b8c9
2 changed files with 2 additions and 1 deletions

View File

@ -476,4 +476,5 @@ export default {
isElectron,
pubKeyRegex,
noteRegex,
};

View File

@ -173,7 +173,7 @@ class SearchBox extends Component<Props, State> {
});
}
if (query.indexOf('note') === 0) {
if (query.match(Helpers.noteRegex)) {
route('/post/' + query);
return;
}