fix(sip-invite) fix baseurl case sensitive replacement

This commit is contained in:
Tudor-Ovidiu Avram 2021-04-29 13:47:18 +03:00
parent 8bd874ca70
commit 3339a1d19f
1 changed files with 2 additions and 1 deletions

View File

@ -829,8 +829,9 @@ export function inviteSipEndpoints( // eslint-disable-line max-params
return Promise.resolve(); return Promise.resolve();
} }
const regex = new RegExp(`/${roomName}`, 'i');
const baseUrl = Object.assign(new URL(locationURL.toString()), { const baseUrl = Object.assign(new URL(locationURL.toString()), {
pathname: locationURL.pathname.replace(`/${roomName}`, ''), pathname: locationURL.pathname.replace(regex, ''),
hash: '', hash: '',
search: '' search: ''
}); });