Эх сурвалжийг харах

new check_configure_kerio_buisness_mail.tpl

andre 6 сар өмнө
parent
commit
a7f246b757

+ 5 - 4
check_configure_kerio_buisness_mail.tpl

@@ -4,10 +4,11 @@
 </style>
 </style>
 
 
 <script>
 <script>
-function is_domain(str) {
-  const regexp = /^(?=[a-z0-9-]\.)(xn--)?[a-z0-9]+(-[a-z0-9]+)*\.[a-z]$/;
-  return regexp.test(str);
-}
+    function is_domain(str) {
+        console.log(str);
+        const regexp = /^(?=[a-z0-9-]\.)(xn--)?[a-z0-9]+(-[a-z0-9]+)*\.[a-z]$/;
+        return regexp.test(str);
+    }
     function checkInput (domain, pid) {
     function checkInput (domain, pid) {
         var xhttp = new XMLHttpRequest();
         var xhttp = new XMLHttpRequest();
         var success = false;
         var success = false;