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}`, ), ];