瀏覽代碼

[RN] Fix the parsing of the domain out of a URL

j8
Lyubomir Marinov 8 年之前
父節點
當前提交
3743602c67
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      react/features/app/functions.native.js

+ 1
- 1
react/features/app/functions.native.js 查看文件

203
         regex = new RegExp(`^${_URI_AUTHORITY_PATTERN}`, 'gi');
203
         regex = new RegExp(`^${_URI_AUTHORITY_PATTERN}`, 'gi');
204
         match = regex.exec(str);
204
         match = regex.exec(str);
205
         if (match) {
205
         if (match) {
206
-            let authority = match[1];
206
+            let authority = match[1].substring(/* // */ 2);
207
 
207
 
208
             str = str.substring(regex.lastIndex);
208
             str = str.substring(regex.lastIndex);
209
 
209
 

Loading…
取消
儲存