Skip to content

Commit b9257b9

Browse files
authored
Merge branch 'main' into chas/remove-screenshots
2 parents 82f563e + d88c824 commit b9257b9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

apps/api/src/trust-portal/dto/domain-status.dto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export class GetDomainStatusDto {
88
})
99
@IsString()
1010
@IsNotEmpty({ message: 'domain cannot be empty' })
11-
@Matches(/^(?!-)[A-Za-z0-9-]+([-.][a-z0-9]+)*\.[A-Za-z]{2,6}$/u, {
11+
@Matches(/^(?!-)[A-Za-z0-9-]+([-.][a-z0-9]+)*\.[A-Za-z]{2,63}$/u, {
1212
message: 'domain must be a valid domain format',
1313
})
1414
domain: string;

apps/app/src/app/(app)/[orgId]/trust/portal-settings/actions/check-dns-record.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const checkDnsSchema = z.object({
2828
.min(1, 'Domain cannot be empty.')
2929
.max(63, 'Domain too long. Max 63 chars.')
3030
.regex(
31-
/^(?!-)[A-Za-z0-9-]+([-\.]{1}[a-z0-9]+)*\.[A-Za-z]{2,6}$/,
31+
/^(?!-)[A-Za-z0-9-]+([-\.]{1}[a-z0-9]+)*\.[A-Za-z]{2,63}$/,
3232
'Invalid domain format. Use format like sub.example.com',
3333
)
3434
.trim(),

apps/app/src/app/(app)/[orgId]/trust/portal-settings/components/TrustPortalDomain.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const trustPortalDomainSchema = z.object({
2929
.min(1, 'Domain cannot be empty.')
3030
.max(63, 'Domain too long. Max 63 chars.')
3131
.regex(
32-
/^(?!-)[A-Za-z0-9-]+([-\.]{1}[a-z0-9]+)*\.[A-Za-z]{2,6}$/,
32+
/^(?!-)[A-Za-z0-9-]+([-\.]{1}[a-z0-9]+)*\.[A-Za-z]{2,63}$/,
3333
'Invalid domain format. Use format like sub.example.com',
3434
)
3535
.trim(),

0 commit comments

Comments
 (0)