From 195d2f7d2bd193108938901c3f757a9e89080b63 Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Mon, 3 Oct 2022 16:02:03 -0500
Subject: Implement mentions rendering

---
 src/view/com/modals/ComposePost.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/view/com/modals/ComposePost.tsx')

diff --git a/src/view/com/modals/ComposePost.tsx b/src/view/com/modals/ComposePost.tsx
index 6acb01005..e1e7cac5f 100644
--- a/src/view/com/modals/ComposePost.tsx
+++ b/src/view/com/modals/ComposePost.tsx
@@ -79,7 +79,7 @@ export function Component({replyTo}: {replyTo?: string}) {
 
   const textDecorated = useMemo(() => {
     return (text || '').split(/(\s)/g).map((item, i) => {
-      if (/@[a-zA-Z0-9]+/g.test(item)) {
+      if (/^@[a-zA-Z0-9\.-]+$/g.test(item)) {
         return (
           <Text key={i} style={{color: colors.blue3}}>
             {item}
-- 
cgit 1.4.1

