diff --git a/packages/frontend/src/pages/search.user.vue b/packages/frontend/src/pages/search.user.vue index f2c3003518..d98ec71bb1 100644 --- a/packages/frontend/src/pages/search.user.vue +++ b/packages/frontend/src/pages/search.user.vue @@ -42,7 +42,7 @@ const key = ref(0); const searchQuery = ref(''); const searchOrigin = ref('combined'); const userPagination = ref(); -const isApUserName = RegExp('@[a-zA-Z0-9_.]+@[a-zA-Z0-9-_.]+[a-zA-Z]$'); +const isApUserName = RegExp('^@[a-zA-Z0-9_.]+@[a-zA-Z0-9-_.]+[a-zA-Z]$'); async function search() { const query = searchQuery.value.toString().trim();