Просмотр исходного кода

new check_configure_kerio_buisness_mail.tpl

andre 7 месяцев назад
Родитель
Сommit
8f9955c343
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      check_configure_kerio_buisness_mail.tpl

+ 4 - 4
check_configure_kerio_buisness_mail.tpl

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