瀏覽代碼

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

fix(sip-invite) fix baseurl case sensitive replacement
master
Avram Tudor 4 年之前
父節點
當前提交
c851136f8e
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      react/features/invite/functions.js

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

830
         return Promise.resolve();
830
         return Promise.resolve();
831
     }
831
     }
832
 
832
 
833
+    const regex = new RegExp(`/${roomName}`, 'i');
833
     const baseUrl = Object.assign(new URL(locationURL.toString()), {
834
     const baseUrl = Object.assign(new URL(locationURL.toString()), {
834
-        pathname: locationURL.pathname.replace(`/${roomName}`, ''),
835
+        pathname: locationURL.pathname.replace(regex, ''),
835
         hash: '',
836
         hash: '',
836
         search: ''
837
         search: ''
837
     });
838
     });

Loading…
取消
儲存