adding case insensitive match during status composition
This commit is contained in:
parent
7863e6225e
commit
2876252ac0
|
@ -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}`,
|
||||
),
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue