diff --git a/packages/client/src/scripts/autocomplete.ts b/packages/client/src/scripts/autocomplete.ts index 271557a10..99f9dce40 100644 --- a/packages/client/src/scripts/autocomplete.ts +++ b/packages/client/src/scripts/autocomplete.ts @@ -3,7 +3,7 @@ import getCaretCoordinates from "textarea-caret"; import { toASCII } from "punycode/"; import { popup } from "@/os"; -const mentionRegex = /@(?[a-zA-Z0-9_]+|$)@?(?[a-zA-Z0-9-.]+)?/g; +const mentionRegex = /@(?[a-zA-Z0-9_]+|$)@?(?[a-zA-Z0-9-.]+)?$/g; export class Autocomplete { private suggestion: {