|
|
@@ -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;
|