[RN] Fix the parsing of the domain out of a URL
This commit is contained in:
parent
ee651840bf
commit
3743602c67
|
@ -203,7 +203,7 @@ export function _parseURIString(uri) {
|
||||||
regex = new RegExp(`^${_URI_AUTHORITY_PATTERN}`, 'gi');
|
regex = new RegExp(`^${_URI_AUTHORITY_PATTERN}`, 'gi');
|
||||||
match = regex.exec(str);
|
match = regex.exec(str);
|
||||||
if (match) {
|
if (match) {
|
||||||
let authority = match[1];
|
let authority = match[1].substring(/* // */ 2);
|
||||||
|
|
||||||
str = str.substring(regex.lastIndex);
|
str = str.substring(regex.lastIndex);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue