浏览代码

Merge pull request #9110 from jitsi/tavram/fix-case-sensitive-replcement

fix(sip-invite) fix baseurl case sensitive replacement
j8
Avram Tudor 4 年前
父节点
当前提交
c851136f8e
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      react/features/invite/functions.js

+ 2
- 1
react/features/invite/functions.js 查看文件

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

正在加载...
取消
保存