mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 12:36:57 +00:00
make username matching consistent between lookup.ts and search.user.vue
This commit is contained in:
parent
423fdded14
commit
2d04c76260
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ export async function lookup(router?: Router) {
|
|||
const query = temp ? temp.trim() : '';
|
||||
if (canceled || query.length <= 1) return;
|
||||
|
||||
if (query.startsWith('@') && !query.includes(' ')) {
|
||||
if (query.match(/^@[a-z0-9_.-]+@[a-z0-9_.-]+$/i)) {
|
||||
_router.push(`/${query}`);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue