angular.module("c8y.ui").directive("c8yHttpProtocol",function(){return{require:"ngModel",link:function(t,o,r,c){c.$validators.c8yHttpProtocol=function(t){var o=new RegExp("^(https?)://.*$","is"),o=r.c8yHttpProtocol?new RegExp(r.c8yHttpProtocol):o;return _.isEmpty(t)||o.test(t)}}}});