check for existing protocol

This commit is contained in:
Kyle Spearrin 2019-01-07 10:40:11 -05:00
parent e7464785e1
commit f3f17138c8
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ export class Utils {
}
let httpUrl = uriString.startsWith('http://') || uriString.startsWith('https://');
if (!httpUrl && Utils.tldEndingRegex.test(uriString)) {
if (!httpUrl && uriString.indexOf('://') < 0 && Utils.tldEndingRegex.test(uriString)) {
uriString = 'http://' + uriString;
httpUrl = true;
}