Browse Source

fix(sip-invite) fix baseurl case sensitive replacement

master
Tudor-Ovidiu Avram 4 years ago
parent
commit
3339a1d19f
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      react/features/invite/functions.js

+ 2
- 1
react/features/invite/functions.js View File

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

Loading…
Cancel
Save