Переглянути джерело

[RN] Strip spaces when parsing URLs

efficient_tiling
Saúl Ibarra Corretgé 8 роки тому
джерело
коміт
a23eec55e8
1 змінених файлів з 3 додано та 0 видалено
  1. 3
    0
      react/features/base/util/uri.js

+ 3
- 0
react/features/base/util/uri.js Переглянути файл

@@ -177,6 +177,9 @@ export function parseStandardURIString(str: string) {
177 177
     let regex;
178 178
     let match: Array<string> | null;
179 179
 
180
+    // cleanup spaces
181
+    str = str.replace(/\s/g, '');
182
+
180 183
     // protocol
181 184
     regex = new RegExp(`^${_URI_PROTOCOL_PATTERN}`, 'gi');
182 185
     match = regex.exec(str);

Завантаження…
Відмінити
Зберегти