angular.module("c8y.ui").directive("c8yRegularExpression",function(){return{require:"ngModel",link:function(e,n,r,i){i.$validators.c8yRegularExpression=function(e,n){e=e||n,n=!0;try{new RegExp(e)}catch(e){n=!1}return n}}}});