about summary refs log tree commit diff
path: root/src/lib/strings
diff options
context:
space:
mode:
authorChenyu Huang <itschenyu@gmail.com>2025-07-24 15:58:24 -0700
committerChenyu Huang <itschenyu@gmail.com>2025-07-24 15:58:24 -0700
commitead6862fc64597fdf811e0fb88e12ef0409b8d11 (patch)
tree7f2f0a42b540e105234e2df6cfc773fd014a7e7c /src/lib/strings
parentfc2fae42bd8d90fd15b06c14a781efb79bc14e1d (diff)
downloadvoidsky-ead6862fc64597fdf811e0fb88e12ef0409b8d11.tar.zst
fix some auto complete issues
Diffstat (limited to 'src/lib/strings')
-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