Skip to content

Commit e0e2926

Browse files
authored
feat: remove unnecessary non-TLD validation
1 parent 96f2d39 commit e0e2926

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/utils/helpers.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ export const validator = {
7676

7777
// Split and validate each part
7878
const parts = domain.split(".");
79-
if (parts.length < 2) {
80-
return false;
81-
}
8279

8380
const validPart = /^[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$/;
8481
return parts.every((part) => validPart.test(part));

0 commit comments

Comments
 (0)