mirror of
https://github.com/netbirdio/dashboard.git
synced 2026-01-26 01:21:04 +00:00
feat: remove unnecessary non-TLD validation
This commit is contained in:
committed by
GitHub
parent
96f2d39e54
commit
e0e292669a
@@ -76,9 +76,6 @@ export const validator = {
|
||||
|
||||
// Split and validate each part
|
||||
const parts = domain.split(".");
|
||||
if (parts.length < 2) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const validPart = /^[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$/;
|
||||
return parts.every((part) => validPart.test(part));
|
||||
|
||||
Reference in New Issue
Block a user