about summary refs log tree commit diff
path: root/src/lib
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 /src/lib
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 'src/lib')
-rw-r--r--src/lib/strings/mention-manip.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/strings/mention-manip.ts b/src/lib/strings/mention-manip.ts
index 1f7cbe434..7b52f745b 100644
--- a/src/lib/strings/mention-manip.ts
+++ b/src/lib/strings/mention-manip.ts
@@ -7,7 +7,7 @@ export function getMentionAt(
   text: string,
   cursorPos: number,
 ): FoundMention | undefined {
-  let re = /(^|\s)@([a-z0-9.]*)/gi
+  let re = /(^|\s)@([a-z0-9.-]*)/gi
   let match
   while ((match = re.exec(text))) {
     const spaceOffset = match[1].length