Add http protocol if its missing

This commit is contained in:
brantje 2017-02-20 23:44:00 +01:00
parent 925897b8ee
commit 9ddbf40cce
No known key found for this signature in database
GPG key ID: 5FF1D117F918687F

View file

@ -67,7 +67,9 @@
}
if (regex.test(scope.value)) {
scope.isLink = true;
if(scope.value.substr(0,4) !== 'http'){
scope.value = 'http://'+scope.value;
}
}
}
});