From 3339a1d19f54e7dbce2d7d0f9658bf522049fd0d Mon Sep 17 00:00:00 2001 From: Tudor-Ovidiu Avram Date: Thu, 29 Apr 2021 13:47:18 +0300 Subject: [PATCH] fix(sip-invite) fix baseurl case sensitive replacement --- react/features/invite/functions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/react/features/invite/functions.js b/react/features/invite/functions.js index 83ee9a48e..1fad5b6b9 100644 --- a/react/features/invite/functions.js +++ b/react/features/invite/functions.js @@ -829,8 +829,9 @@ export function inviteSipEndpoints( // eslint-disable-line max-params return Promise.resolve(); } + const regex = new RegExp(`/${roomName}`, 'i'); const baseUrl = Object.assign(new URL(locationURL.toString()), { - pathname: locationURL.pathname.replace(`/${roomName}`, ''), + pathname: locationURL.pathname.replace(regex, ''), hash: '', search: '' });