fix(sip-invite) fix baseurl case sensitive replacement
This commit is contained in:
parent
8bd874ca70
commit
3339a1d19f
|
@ -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: ''
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue