From ead6862fc64597fdf811e0fb88e12ef0409b8d11 Mon Sep 17 00:00:00 2001 From: Chenyu Huang Date: Thu, 24 Jul 2025 15:58:24 -0700 Subject: fix some auto complete issues --- __tests__/lib/strings/mention-manip.test.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to '__tests__') diff --git a/__tests__/lib/strings/mention-manip.test.ts b/__tests__/lib/strings/mention-manip.test.ts index f9075763e..ece69e195 100644 --- a/__tests__/lib/strings/mention-manip.test.ts +++ b/__tests__/lib/strings/mention-manip.test.ts @@ -32,6 +32,7 @@ describe('getMentionAt', () => { ['@alice hello', 7, undefined], ['alice@alice', 0, undefined], ['alice@alice', 6, undefined], + ['hello @alice-com goodbye', 8, 'alice-com'], ] it.each(cases)( @@ -72,6 +73,7 @@ describe('insertMentionAt', () => { ['@alice hello', 7, '@alice hello'], ['alice@alice', 0, 'alice@alice'], ['alice@alice', 6, 'alice@alice'], + ['hello @alice-com goodbye', 10, 'hello @alice.com goodbye'], ] it.each(cases)( -- cgit 1.4.1