Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

[RN] Strip spaces when parsing URLs

Saúl Ibarra Corretgéa23eec55e820
diff --git a/react/features/base/util/uri.js b/react/features/base/util/uri.js
index 2022a4170f..e12e7fd023 100644
--- a/react/features/base/util/uri.js
+++ b/react/features/base/util/uri.js
@@ -177,6 +177,9 @@ export function parseStandardURIString(str: string) {
let regex;
let match: Array<string> | null;
+ // cleanup spaces
+ str = str.replace(/\s/g, '');
+
// protocol
regex = new RegExp(`^${_URI_PROTOCOL_PATTERN}`, 'gi');
match = regex.exec(str);