misc: make URL protocol matching regexes non-greedy
This commit is contained in:
parent
f3c83f6e6d
commit
7c911eca96
|
@ -71,7 +71,7 @@ function _fixRoom(room: ?string) {
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
function _fixURIStringScheme(uri: string) {
|
function _fixURIStringScheme(uri: string) {
|
||||||
const regex = new RegExp(`${URI_PROTOCOL_PATTERN}+`, 'gi');
|
const regex = new RegExp(`${URI_PROTOCOL_PATTERN}+`, 'i');
|
||||||
const match: Array<string> | null = regex.exec(uri);
|
const match: Array<string> | null = regex.exec(uri);
|
||||||
|
|
||||||
if (match) {
|
if (match) {
|
||||||
|
|
|
@ -45,7 +45,7 @@ export function generateDeepLinkingURL() {
|
||||||
|
|
||||||
const appScheme = interfaceConfig.APP_SCHEME || 'org.jitsi.meet';
|
const appScheme = interfaceConfig.APP_SCHEME || 'org.jitsi.meet';
|
||||||
const { href } = window.location;
|
const { href } = window.location;
|
||||||
const regex = new RegExp(URI_PROTOCOL_PATTERN, 'gi');
|
const regex = new RegExp(URI_PROTOCOL_PATTERN, 'i');
|
||||||
|
|
||||||
// Android: use an intent link, custom schemes don't work in all browsers.
|
// Android: use an intent link, custom schemes don't work in all browsers.
|
||||||
// https://developer.chrome.com/multidevice/android/intents
|
// https://developer.chrome.com/multidevice/android/intents
|
||||||
|
|
Loading…
Reference in New Issue