about summary refs log tree commit diff
path: root/__tests__/lib/strings/mention-manip.test.ts
diff options
context:
space:
mode:
authorjim <310223+jimmylee@users.noreply.github.com>2025-07-24 17:18:40 -0700
committerGitHub <noreply@github.com>2025-07-24 17:18:40 -0700
commit26755445e375211e7b223fa86393813d68f93abc (patch)
tree7dcc2f95fd3cfbf1d45767bdfda1561bdc3bb84c /__tests__/lib/strings/mention-manip.test.ts
parent101b3262b88b494459a211bdc697b1fd3222a50c (diff)
parentead6862fc64597fdf811e0fb88e12ef0409b8d11 (diff)
downloadvoidsky-26755445e375211e7b223fa86393813d68f93abc.tar.zst
Merge pull request #8714 from internet-development/c/app-1332-handle-autocomplete-broken-for-handles-with-hyphens
Fix some auto complete issues on mobile
Diffstat (limited to '__tests__/lib/strings/mention-manip.test.ts')
-rw-r--r--__tests__/lib/strings/mention-manip.test.ts2
1 files changed, 2 insertions, 0 deletions
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)(