From 2876252ac02e6dd39245dd1ee902996db00873e6 Mon Sep 17 00:00:00 2001 From: Tassoman Date: Fri, 13 Oct 2023 17:20:00 +0000 Subject: [PATCH] adding case insensitive match during status composition --- src/features/compose/editor/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/compose/editor/index.tsx b/src/features/compose/editor/index.tsx index 3bb217f6f..55ccc76e8 100644 --- a/src/features/compose/editor/index.tsx +++ b/src/features/compose/editor/index.tsx @@ -28,7 +28,7 @@ import StatePlugin from './plugins/state-plugin'; const LINK_MATCHERS = [ createLinkMatcherWithRegExp( - /((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/, + /((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/i, (text) => text.startsWith('http') ? text : `https://${text}`, ), ];