adding case insensitive match during status composition

This commit is contained in:
Tassoman 2023-10-13 17:20:00 +00:00 committed by Alex Gleason
parent 7863e6225e
commit 2876252ac0
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ import StatePlugin from './plugins/state-plugin';
const LINK_MATCHERS = [ const LINK_MATCHERS = [
createLinkMatcherWithRegExp( 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}`, (text) => text.startsWith('http') ? text : `https://${text}`,
), ),
]; ];