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

This commit is contained in:
Lyubomir Marinov 2017-02-02 13:40:49 -06:00
parent ee651840bf
commit 3743602c67
1 changed files with 1 additions and 1 deletions

View File

@ -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);