From 6e2b7a0b90ae8140d81d2d66c87ec9e40d9f45ec Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Fri, 18 Nov 2022 13:59:17 -0600
Subject: Add support for web links

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

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

diff --git a/src/view/com/composer/ComposePost.tsx b/src/view/com/composer/ComposePost.tsx
index b7abbed48..ab4834116 100644
--- a/src/view/com/composer/ComposePost.tsx
+++ b/src/view/com/composer/ComposePost.tsx
@@ -108,7 +108,7 @@ export const ComposePost = observer(function ComposePost({
       : undefined
 
   const textDecorated = useMemo(() => {
-    const re = /(@[a-z0-9\.]*)/gi
+    const re = /(@[a-z0-9\.]*)|(https?:\/\/[\S]+)/gi
     const segments = []
     let match
     let start = 0
-- 
cgit 1.4.1

