Revert "misc: make URL protocol matching regexes non-greedy"
This reverts commit 7c911eca96
.
I'm dumb. We need global mode because otherwise lastIndex is not updated in the
regex object, which we rely upon, so this is intentional.
This commit is contained in:
parent
9f3ef43daa
commit
6f95c50d6e
|
@ -71,7 +71,7 @@ function _fixRoom(room: ?string) {
|
|||
* @returns {string}
|
||||
*/
|
||||
function _fixURIStringScheme(uri: string) {
|
||||
const regex = new RegExp(`${URI_PROTOCOL_PATTERN}+`, 'i');
|
||||
const regex = new RegExp(`${URI_PROTOCOL_PATTERN}+`, 'gi');
|
||||
const match: Array<string> | null = regex.exec(uri);
|
||||
|
||||
if (match) {
|
||||
|
|
|
@ -45,7 +45,7 @@ export function generateDeepLinkingURL() {
|
|||
|
||||
const appScheme = interfaceConfig.APP_SCHEME || 'org.jitsi.meet';
|
||||
const { href } = window.location;
|
||||
const regex = new RegExp(URI_PROTOCOL_PATTERN, 'i');
|
||||
const regex = new RegExp(URI_PROTOCOL_PATTERN, 'gi');
|
||||
|
||||
// Android: use an intent link, custom schemes don't work in all browsers.
|
||||
// https://developer.chrome.com/multidevice/android/intents
|
||||
|
|
Loading…
Reference in New Issue