feat: add search for a tld via RDAP

This commit is contained in:
Maël Gangloff
2024-12-20 17:43:35 +01:00
parent 7c606e2697
commit 1dc16d769b
9 changed files with 86 additions and 21 deletions

View File

@@ -19,7 +19,7 @@ export function DomainSearchBar({onFinish}: { onFinish: (values: FieldType) => v
required: true,
message: t`Required`
}, {
pattern: /^(?=.*\.)\S*[^.\s]$/,
pattern: /^(?=.*\.)?\S*[^.\s]$/,
message: t`This domain name does not appear to be valid`,
max: 63,
min: 2