ソースを参照

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
     });

読み込み中…
キャンセル
保存