0
0

🩹 fix and simplify regex #5

Merged
thetek42 merged 6 commits from ui-test into main 2021-04-03 16:00:32 +02:00
Showing only changes of commit f0571463f5 - Show all commits

View File

@ -128,7 +128,7 @@ function dnswatch_search() {
function is_valid_domain(str) {
let regex = /^([a-z0-9\-]+\.)+[a-z0-9]{2,}$/;
let regex = /^([a-z0-9\-]{1,64}\.){1,16}[a-z0-9]{2,}$/;
return regex.test(str);
}