Merge branch 'fix-i1567' into 'main'

adding case insensitive match during status composition

Closes #1567

See merge request soapbox-pub/soapbox!2807
This commit is contained in:
Alex Gleason 2023-10-13 17:20:01 +00:00
commit e0b1d022e3

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